1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

language setting fixes

This commit is contained in:
Kyle Spearrin
2018-04-24 23:53:20 -04:00
parent a135acb3c4
commit 1a85017d18
6 changed files with 32 additions and 27 deletions

View File

@@ -110,7 +110,8 @@ environmentService.setUrlsFromStorage().then(() => {
export function initFactory(): Function {
return async () => {
await i18nService.init(await storageService.get<string>('locale'));
const locale = await storageService.get<string>(ConstantsService.localeKey);
await i18nService.init(locale);
await authService.init();
const htmlEl = window.document.documentElement;
htmlEl.classList.add('os_' + platformUtilsService.getDeviceString());