translation modify

This commit is contained in:
geek 2018-03-07 12:21:50 +09:00
parent 409a737bba
commit af581d6a1d
2 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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,