mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
set locale for angular app
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
APP_INITIALIZER,
|
||||
LOCALE_ID,
|
||||
NgModule,
|
||||
} from '@angular/core';
|
||||
|
||||
@@ -181,6 +182,11 @@ export function initFactory(): Function {
|
||||
deps: [],
|
||||
multi: true,
|
||||
},
|
||||
{
|
||||
provide: LOCALE_ID,
|
||||
useFactory: () => i18nService.translationLocale,
|
||||
deps: [],
|
||||
},
|
||||
],
|
||||
})
|
||||
export class ServicesModule {
|
||||
|
||||
Reference in New Issue
Block a user