0
// translate
import { Globalization } from '@ionic-native/globalization';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
export function createTranslateLoader(http: HttpClient) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: createTranslateLoader,
deps: [HttpClient]
}
}),
I’m working on a project done on Ionic 3.
When I give one ionic cordova run android --livereload
the translation works normally.
But when I use ionic cordova run android --prod
or ionic cordova build android --prod
translation no longer works, someone has already gone through this and could help me?