HI, i am beginner of using ionic framework. I have using ionic native globalization and ng2-translate to deal with the translation in app, below is my translation json in src/assets/i18n/en.json
Hi, Sujan12, thanks for your reply. Here is my definition:
export function createTranslateLoader(http: Http) {
return new TranslateStaticLoader(http, ‘./assets/i18n/’, ‘.json’);
}
Have you tried variations? Without the Slash at the end?
If this is triggered by ‘vendor.js’ (which your screenshot implies), is ./assets a path that is available? Probably only ../assets, right?
Yes, i have tried before, but android still not have translation. I am very confused of this issue.
You means In android the path should be …/assets/en.json??