mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-01 18:08:19 +01:00
set locale for angular app
This commit is contained in:
parent
9d4f29f0a9
commit
65713477de
@ -135,6 +135,11 @@ import { I18nPipe } from 'jslib/angular/pipes/i18n.pipe';
|
||||
import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
|
||||
import { SearchPipe } from 'jslib/angular/pipes/search.pipe';
|
||||
|
||||
import { registerLocaleData } from '@angular/common';
|
||||
import localeDa from '@angular/common/locales/da';
|
||||
|
||||
registerLocaleData(localeDa, 'da');
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
BrowserModule,
|
||||
|
@ -11,7 +11,7 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||
})
|
||||
export class FooterComponent implements OnInit {
|
||||
version: string;
|
||||
year: string = '2016';
|
||||
year: string = '2015';
|
||||
|
||||
constructor(private platformUtilsService: PlatformUtilsService) { }
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -644,6 +644,12 @@ app-user-billing {
|
||||
}
|
||||
}
|
||||
|
||||
.form-inline {
|
||||
input[type='datetime-local'] {
|
||||
width: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
.org-nav {
|
||||
background-color: $input-bg;
|
||||
border-bottom: 1px solid $border-color;
|
||||
|
Loading…
Reference in New Issue
Block a user