mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
register locale ids
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
APP_INITIALIZER,
|
||||
LOCALE_ID,
|
||||
NgModule,
|
||||
} from '@angular/core';
|
||||
|
||||
@@ -145,6 +146,11 @@ export function initFactory(i18nService: I18nService, storageService: StorageSer
|
||||
deps: [I18nService, StorageService, PopupUtilsService],
|
||||
multi: true,
|
||||
},
|
||||
{
|
||||
provide: LOCALE_ID,
|
||||
useFactory: () => getBgService<I18nService>('i18nService')().translationLocale,
|
||||
deps: [],
|
||||
},
|
||||
],
|
||||
})
|
||||
export class ServicesModule {
|
||||
|
||||
Reference in New Issue
Block a user