Expose i18n globals in SignalContext across all windows

This commit is contained in:
Jamie Kyle
2023-08-07 13:28:09 -07:00
committed by GitHub
parent 55394e17c0
commit 4455328312
13 changed files with 38 additions and 27 deletions

View File

@@ -573,12 +573,12 @@ export async function startApp(): Promise<void> {
document.documentElement.setAttribute(
'lang',
window.getResolvedMessagesLocale().split(/[-_]/)[0]
window.SignalContext.getResolvedMessagesLocale().split(/[-_]/)[0]
);
document.documentElement.setAttribute(
'dir',
window.getResolvedMessagesLocaleDirection()
window.SignalContext.getResolvedMessagesLocaleDirection()
);
KeyChangeListener.init(window.textsecure.storage.protocol);