Quote from
miracleman on February 15, 2018, 12:13 pm
I've been trying to add a language without much luck. Added an es.json file (copied the en.json and changed some values)
Changed the readonly defaultLanguage = "es"; in the service.
Added the es.json file to the getTranslation
In the app.components.ts change the constructure to
translationService.addLanguages(["en", "fr", "de", "pt", "ar", "es"]);
translationService.setDefaultLanguage('es');
But, still, everytime a new user logs in, default goes to english. Sometimes I get .pipe is not a function error. Any help?
I've been trying to add a language without much luck. Added an es.json file (copied the en.json and changed some values)
Changed the readonly defaultLanguage = "es"; in the service.
Added the es.json file to the getTranslation
In the app.components.ts change the constructure to
translationService.addLanguages(["en", "fr", "de", "pt", "ar", "es"]);
translationService.setDefaultLanguage('es');
But, still, everytime a new user logs in, default goes to english. Sometimes I get .pipe is not a function error. Any help?