Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit ea6e642

Browse files
committed
Step 11: Update i18n & code cleanup
1 parent 7aeb2c3 commit ea6e642

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

src/i18n/strings/en_EN.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,6 @@
387387
"Failed to invite users to the room:": "Failed to invite users to the room:",
388388
"We sent the others, but the below people couldn't be invited to <RoomName/>": "We sent the others, but the below people couldn't be invited to <RoomName/>",
389389
"Some invites couldn't be sent": "Some invites couldn't be sent",
390-
"%(space1Name)s and %(space2Name)s": "%(space1Name)s and %(space2Name)s",
391-
"%(spaceName)s and %(count)s others|other": "%(spaceName)s and %(count)s others",
392-
"%(spaceName)s and %(count)s others|zero": "%(spaceName)s",
393-
"%(spaceName)s and %(count)s others|one": "%(spaceName)s and %(count)s other",
394390
"You need to be logged in.": "You need to be logged in.",
395391
"You need to be able to invite users to do that.": "You need to be able to invite users to do that.",
396392
"Unable to create widget.": "Unable to create widget.",
@@ -685,14 +681,18 @@
685681
"%(num)s hours from now": "%(num)s hours from now",
686682
"about a day from now": "about a day from now",
687683
"%(num)s days from now": "%(num)s days from now",
684+
"%(space1Name)s and %(space2Name)s": "%(space1Name)s and %(space2Name)s",
685+
"%(spaceName)s and %(count)s others|other": "%(spaceName)s and %(count)s others",
686+
"%(spaceName)s and %(count)s others|zero": "%(spaceName)s",
687+
"%(spaceName)s and %(count)s others|one": "%(spaceName)s and %(count)s other",
688688
"%(name)s (%(userId)s)": "%(name)s (%(userId)s)",
689-
"Your browser does not support the required cryptography extensions": "Your browser does not support the required cryptography extensions",
690-
"Not a valid %(brand)s keyfile": "Not a valid %(brand)s keyfile",
691-
"Authentication check failed: incorrect password?": "Authentication check failed: incorrect password?",
692689
"Unexpected server error trying to leave the room": "Unexpected server error trying to leave the room",
693690
"Can't leave Server Notices room": "Can't leave Server Notices room",
694691
"This room is used for important messages from the Homeserver, so you cannot leave it.": "This room is used for important messages from the Homeserver, so you cannot leave it.",
695692
"Error leaving room": "Error leaving room",
693+
"Your browser does not support the required cryptography extensions": "Your browser does not support the required cryptography extensions",
694+
"Not a valid %(brand)s keyfile": "Not a valid %(brand)s keyfile",
695+
"Authentication check failed: incorrect password?": "Authentication check failed: incorrect password?",
696696
"Unrecognised address": "Unrecognised address",
697697
"You do not have permission to invite people to this room.": "You do not have permission to invite people to this room.",
698698
"User %(userId)s is already invited to the room": "User %(userId)s is already invited to the room",

test/components/views/rooms/RoomTile-test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import {
2626
mockStateEventImplementation,
2727
mkRoom,
2828
mkEvent,
29+
stubVoiceChannelStore,
2930
} from "../../../test-utils";
30-
import { stubVoiceChannelStore } from "../../../test-utils/voice";
3131
import RoomTile from "../../../../src/components/views/rooms/RoomTile";
3232
import MemberAvatar from "../../../../src/components/views/avatars/MemberAvatar";
3333
import SettingsStore from "../../../../src/settings/SettingsStore";

test/components/views/voip/VoiceChannelRadio-test.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ import { mount } from "enzyme";
1919
import { act } from "react-dom/test-utils";
2020
import { mocked } from "jest-mock";
2121

22-
import { stubClient, mkStubRoom, wrapInMatrixClientContext } from "../../../test-utils";
23-
import { stubVoiceChannelStore } from "../../../test-utils/voice";
22+
import {
23+
stubClient,
24+
mkStubRoom,
25+
wrapInMatrixClientContext,
26+
stubVoiceChannelStore,
27+
} from "../../../test-utils";
2428
import _VoiceChannelRadio from "../../../../src/components/views/voip/VoiceChannelRadio";
2529
import VoiceChannelStore from "../../../../src/stores/VoiceChannelStore";
2630
import DMRoomMap from "../../../../src/utils/DMRoomMap";

test/test-utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ export * from './client';
33
export * from './location';
44
export * from './platform';
55
export * from './test-utils';
6-
// TODO @@TR: Export voice.ts, which currently isn't exported here because it causes all tests to depend on skinning
6+
export * from './voice';
77
export * from './wrappers';
88
export * from './utilities';

0 commit comments

Comments
 (0)