1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-09 12:03:33 +00:00

[PM-6769] [SM-1158] Fix Translation pipe issues on main (#8319)

* Require init in i18n service.

this is needed to load translations and set translation locale

* No longer need to cast i18n

* Expose user preferred locale in i18nService

This is for correctly displaying `default` when no locale has been set in preferences components. The `locale$` observable should always resolve to the currently locale currently being translated to.
This commit is contained in:
Matt Gibson
2024-03-13 10:35:46 -05:00
committed by GitHub
parent e6fe0d1d13
commit 25f89e2a1c
8 changed files with 15 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ export class InitService {
init() {
return async () => {
await this.stateService.init();
await this.i18nService.init();
if (!BrowserPopupUtils.inPopup(window)) {
window.document.body.classList.add("body-full");