1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

register locale ids

This commit is contained in:
Kyle Spearrin
2018-08-02 09:30:33 -04:00
parent 4fbed11c53
commit 989c49152b
2 changed files with 69 additions and 0 deletions

View File

@@ -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 {