additional language support

This commit is contained in:
Kyle Spearrin 2018-07-30 21:14:34 -04:00
parent 52a4fc8e93
commit 950e5a57b1
2 changed files with 9 additions and 1 deletions

View File

@ -137,9 +137,17 @@ import { SearchPipe } from 'jslib/angular/pipes/search.pipe';
import { registerLocaleData } from '@angular/common';
import localeDa from '@angular/common/locales/da';
import localeDe from '@angular/common/locales/de';
import localePt from '@angular/common/locales/pt';
import localePtPt from '@angular/common/locales/pt-PT';
import localeRu from '@angular/common/locales/ru';
import localeSk from '@angular/common/locales/sk';
registerLocaleData(localeDa, 'da');
registerLocaleData(localeDe, 'de');
registerLocaleData(localePt, 'pt-BR');
registerLocaleData(localePtPt, 'pt-PT');
registerLocaleData(localeRu, 'ru');
registerLocaleData(localeSk, 'sk');
@NgModule({

View File

@ -11,7 +11,7 @@ export class I18nService extends BaseI18nService {
});
this.supportedTranslationLocales = [
'en', 'da', 'sk',
'en', 'da', 'de', 'pt-PT', 'pt-BR', 'ru', 'sk',
];
}
}