Fix missing window.i18n

This commit is contained in:
Josh Perez 2023-04-21 17:21:55 -04:00 committed by GitHub
parent 07bad13fa1
commit de1268f8fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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)';
}

View file

@ -13,3 +13,5 @@ export const i18n = setupI18n(
window.SignalContext.getI18nLocale(),
window.SignalContext.getI18nLocaleMessages()
);
window.i18n = i18n;