fix for TranslateModule not exported (#1355)

fix lint errors
Squashing and merging the PR after discussion with Ed.
Co-authored-by: Nestor Lazcano <nestor_ronal09@hotmail.com>
This commit is contained in:
nestorlazcano-fintecheando
2021-08-18 19:07:59 +05:30
committed by GitHub
parent bcff5b42cb
commit de349d1ce2
10 changed files with 54 additions and 19 deletions
+3 -6
View File
@@ -34,11 +34,7 @@ export class I18nService {
defaultLanguage: string;
supportedLanguages: string[];
constructor(private translateService: TranslateService) {
// Embed languages to avoid extra HTTP requests
translateService.setTranslation('en-US', enUS);
translateService.setTranslation('fr-FR', frFR);
}
constructor(private translateService: TranslateService) { }
/**
* Initializes i18n for the application.
@@ -78,7 +74,8 @@ export class I18nService {
}
log.debug(`Language set to ${language}`);
this.translateService.use(language);
localStorage.setItem(this.languageStorageKey, language);
this.translateService.setDefaultLang(language);
}
/**