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

Commit a93107a

Browse files
committed
Add newTranslatableError as a translatable function
Incorporate matrix-org/matrix-web-i18n#3
1 parent 23a74bf commit a93107a

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
"matrix_src_main": "./src/index.ts",
3030
"matrix_lib_main": "./lib/index.ts",
3131
"matrix_lib_typings": "./lib/index.d.ts",
32+
"matrix_i18n_extra_translation_funcs": [
33+
"newTranslatableError"
34+
],
3235
"scripts": {
3336
"prepublishOnly": "yarn build",
3437
"i18n": "matrix-gen-i18n",

src/i18n/strings/en_EN.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,8 @@
424424
"Advanced": "Advanced",
425425
"Effects": "Effects",
426426
"Other": "Other",
427+
"Command error: Unable to handle slash command.": "Command error: Unable to handle slash command.",
428+
"Command error: Unable to find rendering type (%(renderingType)s)": "Command error: Unable to find rendering type (%(renderingType)s)",
427429
"Usage": "Usage",
428430
"Sends the given message as a spoiler": "Sends the given message as a spoiler",
429431
"Prepends ¯\\_(ツ)_/¯ to a plain-text message": "Prepends ¯\\_(ツ)_/¯ to a plain-text message",
@@ -433,20 +435,25 @@
433435
"Sends a message as plain text, without interpreting it as markdown": "Sends a message as plain text, without interpreting it as markdown",
434436
"Sends a message as html, without interpreting it as markdown": "Sends a message as html, without interpreting it as markdown",
435437
"Upgrades a room to a new version": "Upgrades a room to a new version",
438+
"You do not have the required permissions to use this command.": "You do not have the required permissions to use this command.",
436439
"Jump to the given date in the timeline (YYYY-MM-DD)": "Jump to the given date in the timeline (YYYY-MM-DD)",
440+
"We were unable to understand the given date (%(inputDate)s). Try using the format YYYY-MM-DD.": "We were unable to understand the given date (%(inputDate)s). Try using the format YYYY-MM-DD.",
437441
"Changes your display nickname": "Changes your display nickname",
438442
"Changes your display nickname in the current room only": "Changes your display nickname in the current room only",
439443
"Changes the avatar of the current room": "Changes the avatar of the current room",
440444
"Changes your avatar in this current room only": "Changes your avatar in this current room only",
441445
"Changes your avatar in all rooms": "Changes your avatar in all rooms",
442446
"Gets or sets the room topic": "Gets or sets the room topic",
447+
"Failed to get room topic: Unable to find room (%(roomId)s": "Failed to get room topic: Unable to find room (%(roomId)s",
443448
"This room has no topic.": "This room has no topic.",
444449
"Sets the room name": "Sets the room name",
445450
"Invites user with given id to current room": "Invites user with given id to current room",
446451
"Use an identity server": "Use an identity server",
447452
"Use an identity server to invite by email. Click continue to use the default identity server (%(defaultIdentityServerName)s) or manage in Settings.": "Use an identity server to invite by email. Click continue to use the default identity server (%(defaultIdentityServerName)s) or manage in Settings.",
453+
"Use an identity server to invite by email. Manage in Settings.": "Use an identity server to invite by email. Manage in Settings.",
448454
"Joins room with given address": "Joins room with given address",
449455
"Leave room": "Leave room",
456+
"Unrecognised room address: %(roomAlias)s": "Unrecognised room address: %(roomAlias)s",
450457
"Kicks user with given id": "Kicks user with given id",
451458
"Bans user with given id": "Bans user with given id",
452459
"Unbans user with given ID": "Unbans user with given ID",
@@ -457,10 +464,19 @@
457464
"Unignored user": "Unignored user",
458465
"You are no longer ignoring %(userId)s": "You are no longer ignoring %(userId)s",
459466
"Define the power level of a user": "Define the power level of a user",
467+
"Command failed: Unable to find room (%(roomId)s": "Command failed: Unable to find room (%(roomId)s",
468+
"Could not find user in room": "Could not find user in room",
460469
"Deops user with given id": "Deops user with given id",
461470
"Opens the Developer Tools dialog": "Opens the Developer Tools dialog",
462471
"Adds a custom widget by URL to the room": "Adds a custom widget by URL to the room",
472+
"Please supply a widget URL or embed code": "Please supply a widget URL or embed code",
473+
"Please supply a https:// or http:// widget URL": "Please supply a https:// or http:// widget URL",
474+
"You cannot modify widgets in this room.": "You cannot modify widgets in this room.",
463475
"Verifies a user, session, and pubkey tuple": "Verifies a user, session, and pubkey tuple",
476+
"Unknown (user, session) pair: (%(userId)s, %(deviceId)s)": "Unknown (user, session) pair: (%(userId)s, %(deviceId)s)",
477+
"Session already verified!": "Session already verified!",
478+
"WARNING: Session already verified, but keys do NOT MATCH!": "WARNING: Session already verified, but keys do NOT MATCH!",
479+
"WARNING: KEY VERIFICATION FAILED! The signing key for %(userId)s and session %(deviceId)s is \"%(fprint)s\" which does not match the provided key \"%(fingerprint)s\". This could mean your communications are being intercepted!": "WARNING: KEY VERIFICATION FAILED! The signing key for %(userId)s and session %(deviceId)s is \"%(fprint)s\" which does not match the provided key \"%(fingerprint)s\". This could mean your communications are being intercepted!",
464480
"Verified key": "Verified key",
465481
"The signing key you provided matches the signing key you received from %(userId)s's session %(deviceId)s. Session marked as verified.": "The signing key you provided matches the signing key you received from %(userId)s's session %(deviceId)s. Session marked as verified.",
466482
"Forces the current outbound group session in an encrypted room to be discarded": "Forces the current outbound group session in an encrypted room to be discarded",
@@ -470,8 +486,10 @@
470486
"Displays information about a user": "Displays information about a user",
471487
"Send a bug report with logs": "Send a bug report with logs",
472488
"Opens chat with the given user": "Opens chat with the given user",
489+
"Unable to find Matrix ID for phone number": "Unable to find Matrix ID for phone number",
473490
"Sends a message to the given user": "Sends a message to the given user",
474491
"Places the call in the current room on hold": "Places the call in the current room on hold",
492+
"No active call in this room": "No active call in this room",
475493
"Takes the call in the current room off hold": "Takes the call in the current room off hold",
476494
"Converts the room to a DM": "Converts the room to a DM",
477495
"Converts the DM to a room": "Converts the DM to a room",

yarn.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6066,7 +6066,11 @@ matrix-react-test-utils@^0.2.3:
60666066

60676067
"matrix-web-i18n@github:matrix-org/matrix-web-i18n":
60686068
version "1.1.2"
6069+
<<<<<<< Updated upstream
60696070
resolved "https://codeload.github.com/matrix-org/matrix-web-i18n/tar.gz/e5c7071e0cdf715de87ef39dc8260e11d7add2f8"
6071+
=======
6072+
resolved "https://codeload.github.com/matrix-org/matrix-web-i18n/tar.gz/dbd35b35a925bd8ac8932134046efaa80767f4b2"
6073+
>>>>>>> Stashed changes
60706074
dependencies:
60716075
"@babel/parser" "^7.13.16"
60726076
"@babel/traverse" "^7.13.17"

0 commit comments

Comments
 (0)