Fix missing window.i18n
This commit is contained in:
parent
07bad13fa1
commit
de1268f8fd
2 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,7 @@ strictAssert(AboutWindowProps, 'window values not provided');
|
||||||
let platform = '';
|
let platform = '';
|
||||||
if (AboutWindowProps.platform === 'darwin') {
|
if (AboutWindowProps.platform === 'darwin') {
|
||||||
if (AboutWindowProps.arch === 'arm64') {
|
if (AboutWindowProps.arch === 'arm64') {
|
||||||
platform = ` (${window.i18n('icu:appleSilicon')})`;
|
platform = ` (${i18n('icu:appleSilicon')})`;
|
||||||
} else {
|
} else {
|
||||||
platform = ' (Intel)';
|
platform = ' (Intel)';
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,3 +13,5 @@ export const i18n = setupI18n(
|
||||||
window.SignalContext.getI18nLocale(),
|
window.SignalContext.getI18nLocale(),
|
||||||
window.SignalContext.getI18nLocaleMessages()
|
window.SignalContext.getI18nLocaleMessages()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
window.i18n = i18n;
|
||||||
|
|
Loading…
Add table
Reference in a new issue