Ionic globalization work in ios but not in android

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

{
  "Tab.Home": "Home",
  "Tab.Travel": "Travel",
  "Tab.Add": "Add",
  "Tab.Notice": "Notice",
  "Tab.Me": "Me"
}

it works in ios:image

But not work in android:image

In Chrome inspect, it said fail to load:image

Does anyone know why this will happen or experienced before? I am beginner of ionic so Thanks a lot again~

The path of your translation files doesn’t work on Android. Please show us how you define the path to be used (assets/i18n…).

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??

No, I mean that in general the correct path might be a different one and it only accidentally works on the other platforms.

So, Do you know the path of the i18n need to located on the ionic? sorry, because i am the beginner of ionic2. Thanks again.

I am reference from this tutorial:

In this tutorial it says

return new TranslateStaticLoader(http, 'assets/i18n', '.json');

which is different from what you posted.

Hi. Sujan12, i have tried ‘assets/i18n’ and ‘assets/i18n/’ two are the same result.