1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

register locale id

This commit is contained in:
Kyle Spearrin
2018-08-02 09:26:50 -04:00
parent 74d11d32b7
commit ebca594ba9
2 changed files with 69 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import { remote } from 'electron';
import {
APP_INITIALIZER,
LOCALE_ID,
NgModule,
} from '@angular/core';
@@ -186,6 +187,11 @@ export function initFactory(): Function {
deps: [],
multi: true,
},
{
provide: LOCALE_ID,
useFactory: () => i18nService.translationLocale,
deps: [],
},
],
})
export class ServicesModule {