Closed HectorLS closed 4 years ago
@Tibicenas Did you find a workaround ?
Funny how I come back randomly to this post. Here is how we have integrate (in TypeScript):
public setLanguage(lang: string): void {
this.gettextCatalog.setCurrentLanguage(lang);
if (this.loadedLanguages.indexOf(lang) > -1) {
this.$state.reload();
} else {
this.$http.get(`i18n/${lang}.json`).then(
(response: any) => {
this.gettextCatalog.setStrings(lang, response.data[lang]);
this.loadedLanguages.push(lang);
this.$state.reload();
}
);
}
}
Hi, when i compile a .po file i get the following :
Is there a compile option to avoid the language key and get this output ? :
Gulp task :
I saw this List of angular-gettext tools but no one looks achieve that :S
Thanks in advance