1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-15 02:18:42 +02:00

set locale for angular app

This commit is contained in:
Kyle Spearrin 2018-07-23 21:47:08 -04:00
parent 9d4f29f0a9
commit 65713477de
4 changed files with 18 additions and 1 deletions

View File

@ -135,6 +135,11 @@ import { I18nPipe } from 'jslib/angular/pipes/i18n.pipe';
import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe'; import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
import { SearchPipe } from 'jslib/angular/pipes/search.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({ @NgModule({
imports: [ imports: [
BrowserModule, BrowserModule,

View File

@ -11,7 +11,7 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
}) })
export class FooterComponent implements OnInit { export class FooterComponent implements OnInit {
version: string; version: string;
year: string = '2016'; year: string = '2015';
constructor(private platformUtilsService: PlatformUtilsService) { } constructor(private platformUtilsService: PlatformUtilsService) { }

View File

@ -1,5 +1,6 @@
import { import {
APP_INITIALIZER, APP_INITIALIZER,
LOCALE_ID,
NgModule, NgModule,
} from '@angular/core'; } from '@angular/core';
@ -181,6 +182,11 @@ export function initFactory(): Function {
deps: [], deps: [],
multi: true, multi: true,
}, },
{
provide: LOCALE_ID,
useFactory: () => i18nService.translationLocale,
deps: [],
},
], ],
}) })
export class ServicesModule { export class ServicesModule {

View File

@ -644,6 +644,12 @@ app-user-billing {
} }
} }
.form-inline {
input[type='datetime-local'] {
width: 200px;
}
}
.org-nav { .org-nav {
background-color: $input-bg; background-color: $input-bg;
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;