Open jeremy-holt opened 5 years ago
Or you can just use plugin.i18next.use(Backend.with(aurelia.loader));
I only needed to install aurelia-i18n and nothing else.
I don't need to copy anything either.
@jeremy-holt if you could create a PR it would be easier to follow the actual edits.
The documentation at https://aurelia.io/docs/plugins/i18n#installing-the-plugin at Registering the Plugin - using the i18next-xhr-backend using the aurelia-cli loader should be clearer.....
Using aurelia-cli 1.0.0-beta.13
ONLY install
aurelia-i18n
andi18next-xhr-backend
. DO NOT installi18next
.ONLY use the
i18next-xhr-backend
Backendmain.ts
should look something likeand in
aurelia.json
If you're trying to get it to work with the aurelia-cli/alameda the example at
Copy translation files for webpack and i18next-xhr-backend
is misleading.