diff --git a/src/components/views/dialogs/devtools/RoomNotifications.tsx b/src/components/views/dialogs/devtools/RoomNotifications.tsx index 7ddfb5d8baa..25f4110ec11 100644 --- a/src/components/views/dialogs/devtools/RoomNotifications.tsx +++ b/src/components/views/dialogs/devtools/RoomNotifications.tsx @@ -20,7 +20,7 @@ import React, { useContext } from "react"; import MatrixClientContext from "../../../../contexts/MatrixClientContext"; import { useNotificationState } from "../../../../hooks/useRoomNotificationState"; -import { _t } from "../../../../languageHandler"; +import { _t, _td } from "../../../../languageHandler"; import { determineUnreadState } from "../../../../RoomNotifs"; import { humanReadableNotificationColor } from "../../../../stores/notifications/NotificationColor"; import { doesRoomOrThreadHaveUnreadMessages } from "../../../../Unread"; @@ -39,22 +39,38 @@ export default function RoomNotifications({ onBack }: IDevtoolsProps): JSX.Eleme
{MatrixClientPeg.get().getHomeserverUrl()}
+ {_t(
+ "Homeserver is %(homeserverUrl)s
",
+ {
+ homeserverUrl: MatrixClientPeg.get().getHomeserverUrl(),
+ },
+ {
+ code: (sub) => {sub}
,
+ },
+ )}
{MatrixClientPeg.get().getIdentityServerUrl()}
+ {_t(
+ "Identity server is %(identityServerUrl)s
",
+ {
+ identityServerUrl: MatrixClientPeg.get().getIdentityServerUrl(),
+ },
+ {
+ code: (sub) => {sub}
,
+ },
+ )}
%(homeserverUrl)s
": "Homeserver is %(homeserverUrl)s
",
+ "Identity server is %(identityServerUrl)s
": "Identity server is %(identityServerUrl)s
",
"Access Token": "Access Token",
"Your access token gives full access to your account. Do not share it with anyone.": "Your access token gives full access to your account. Do not share it with anyone.",
"Clear cache and reload": "Clear cache and reload",
@@ -3144,12 +3144,11 @@
"Filter results": "Filter results",
"No results found": "No results found",
"Room status": "Room status",
- "Room unread status: ": "Room unread status: ",
- ", count:": ", count:",
- "Notification state is": "Notification state is",
- "Room is ": "Room is ",
- "encrypted ✅": "encrypted ✅",
- "not encrypted 🚨": "not encrypted 🚨",
+ "Room unread status: %(status)s, count: %(count)s|other": "Room unread status: %(status)s, count: %(count)s",
+ "Room unread status: %(status)s, count: %(count)s|zero": "Room unread status: %(status)s",
+ "Notification state is %(notificationState)s": "Notification state is %(notificationState)s",
+ "Room is encrypted ✅": "Room is encrypted ✅",
+ "Room is not encrypted 🚨": "Room is not encrypted 🚨",
"Main timeline": "Main timeline",
"Total: ": "Total: ",
"Highlight: ": "Highlight: ",
diff --git a/test/components/views/dialogs/devtools/__snapshots__/RoomNotifications-test.tsx.snap b/test/components/views/dialogs/devtools/__snapshots__/RoomNotifications-test.tsx.snap
index 79e85f57e9e..843ee88ca5c 100644
--- a/test/components/views/dialogs/devtools/__snapshots__/RoomNotifications-test.tsx.snap
+++ b/test/components/views/dialogs/devtools/__snapshots__/RoomNotifications-test.tsx.snap
@@ -11,20 +11,26 @@ exports[`