O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

For Webpack users

We need to retrieve the plugin from the npm repository, so just type the following command to get the latest:

 npm install aurelia-i18n --save

It will download and save the plugin in your project dependencies. As we said earlier, aurelia-i18n is based on i18n framework, so you should install a backend plugin. One of the most famous is i18next-xhr-backend, a simple i18next backend to be used in the browser. How does it work? Easy, using XHR, it will load resources from some backend server. Yes, your translation files! If you want to use the built-in aurelia-loader backend, the same plugin Aurelia use to get resources, it's okay, you can ignore the next step.

You know what to do now.

npm install i18next i18next-xhr-backend ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required