1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-01 13:13:36 +01:00

Don't start i18n service if in private mode

This commit is contained in:
Thomas Rittson 2021-06-29 16:59:14 +10:00
parent 634cd6d56f
commit 13f29ac8d6

View File

@ -181,7 +181,7 @@ export function initFactory(platformUtilsService: PlatformUtilsService, i18nServ
}, },
{ {
provide: LOCALE_ID, provide: LOCALE_ID,
useFactory: () => getBgService<I18nService>('i18nService')().translationLocale, useFactory: () => isPrivateMode ? null : getBgService<I18nService>('i18nService')().translationLocale,
deps: [], deps: [],
}, },
{ provide: PasswordRepromptServiceAbstraction, useValue: passwordRepromptService }, { provide: PasswordRepromptServiceAbstraction, useValue: passwordRepromptService },