From de1268f8fdba35961b8d9199d92e179903cf60a8 Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Fri, 21 Apr 2023 17:21:55 -0400 Subject: [PATCH] Fix missing window.i18n --- ts/windows/about/app.tsx | 2 +- ts/windows/sandboxedInit.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ts/windows/about/app.tsx b/ts/windows/about/app.tsx index 8b82157718..e54575f620 100644 --- a/ts/windows/about/app.tsx +++ b/ts/windows/about/app.tsx @@ -15,7 +15,7 @@ strictAssert(AboutWindowProps, 'window values not provided'); let platform = ''; if (AboutWindowProps.platform === 'darwin') { if (AboutWindowProps.arch === 'arm64') { - platform = ` (${window.i18n('icu:appleSilicon')})`; + platform = ` (${i18n('icu:appleSilicon')})`; } else { platform = ' (Intel)'; } diff --git a/ts/windows/sandboxedInit.ts b/ts/windows/sandboxedInit.ts index a93ad90cdf..3d65b6aa49 100644 --- a/ts/windows/sandboxedInit.ts +++ b/ts/windows/sandboxedInit.ts @@ -13,3 +13,5 @@ export const i18n = setupI18n( window.SignalContext.getI18nLocale(), window.SignalContext.getI18nLocaleMessages() ); + +window.i18n = i18n;