I18n with fuse-box

Hi All,

I am facing a problem with i18n fuse-box setup. similar to the other webpack issue.

Please help.

Thank you,
Praveen Gandhi P.

1 Like

I fear without sharing a minimalistic repro it will be hard to figure out what could be the problem

1 Like

@zewa666, You are right, let me do that in sometime later.

Thank you.

1 Like

Please have a look at this repo

1 Like

ok so you’re using the aurelia loader to make use of bundled files. In all honesty I’ve no idea how to do that in FuseBox but alternatively the section “Bundle Translation files” talks about in the case of Webpack how to do so with https://github.com/atroo/i18next-resource-store-loader. This way no backend at all is needed since you can directly override the resources in one go.

Bundling per se is not really a good idea for translations in my opinion as they typically grow quickly and sooner or later you’ll want to anyway switch to lazy fetching the needed translations as the user changes locales. You really dont want to ship all of them even if most users e.g just use one specific locale most of the time. So going with the i18next-xhr-backend plugin is I think the best way to do.

2 Likes

@zewa666, your suggestion makes sense to me. Let me try with i18next-xhr-backend

Thank you.

1 Like

Thank you @zewa666, working fine with i18next-xhr-backend.

3 Likes