From af581d6a1d5bfdf9aa081465598a64e9a1f5ad7a Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 7 Mar 2018 12:21:50 +0900 Subject: [PATCH] translation modify --- src/app/commons/component/header/header.component.ts | 8 ++++++++ src/app/commons/component/layouts.module.ts | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/commons/component/header/header.component.ts b/src/app/commons/component/header/header.component.ts index 96c43c4..59ceb46 100644 --- a/src/app/commons/component/header/header.component.ts +++ b/src/app/commons/component/header/header.component.ts @@ -50,6 +50,14 @@ export class HeaderComponent implements OnInit, OnDestroy { // return this.locale.getLanguageDirection(language) as Direction; // } + get currentCountry(): string { + return this.locale.getCurrentCountry(); + } + + get currentNumberingSystem(): string { + return this.locale.getCurrentNumberingSystem(); + } + selectLocale(language: string, country: string, currency: string, numberingSystem: string): void { this.locale.setDefaultLocale(language, country, '', numberingSystem); this.locale.setCurrentCurrency(currency); diff --git a/src/app/commons/component/layouts.module.ts b/src/app/commons/component/layouts.module.ts index 45bed9b..84cf642 100644 --- a/src/app/commons/component/layouts.module.ts +++ b/src/app/commons/component/layouts.module.ts @@ -12,14 +12,6 @@ import { SensorItemFilterComponent } from './sensor-item-filter/sensor-item-filt import { HostSummaryCardComponent } from './host-summary-card/host-summary-card.component'; import { AppSummaryCardComponent } from './app-summary-card/app-summary-card.component'; -import { - L10nConfig, - L10nLoader, - LocalizationModule, - ProviderType, - StorageStrategy -} from 'angular-l10n'; - @NgModule({ imports: [ CommonModule,