mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
language setting fixes
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user