From a3587a80c6fa0fa2ba79b5efd39d055076bb370b Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 3 Jun 2021 22:56:49 +0530 Subject: [PATCH] Use internationalization for user facing strings Signed-off-by: RMidhunSuresh --- src/platform/web/ui/session/rightpanel/RoomInfoView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/web/ui/session/rightpanel/RoomInfoView.js b/src/platform/web/ui/session/rightpanel/RoomInfoView.js index c54cc978..1e047401 100644 --- a/src/platform/web/ui/session/rightpanel/RoomInfoView.js +++ b/src/platform/web/ui/session/rightpanel/RoomInfoView.js @@ -5,7 +5,7 @@ import { AvatarView } from "../../avatar.js"; export class RoomInfoView extends TemplateView { render(t, vm) { - const encryptionString = vm.isEncrypted ? "On" : "Off"; + const encryptionString = vm.isEncrypted ? vm.i18n`On` : vm.i18n`Off`; return t.div({ className: "RoomInfo" }, [ this._createButton(vm), @@ -15,8 +15,8 @@ export class RoomInfoView extends TemplateView { this._createRoomAliasDisplay(vm), t.div({ className: "SidebarRow_collection" }, [ - this._createSideBarRow("People", vm.memberCount, { MemberCount: true }), - this._createSideBarRow("Encryption", encryptionString, { EncryptionStatus: true }) + this._createSideBarRow(vm.i18n`People`, vm.memberCount, { MemberCount: true }), + this._createSideBarRow(vm.i18n`Encryption`, encryptionString, { EncryptionStatus: true }) ]) ]); }