Skip to Main Content
Hands-On Full Stack Web Development with Aurelia
book

Hands-On Full Stack Web Development with Aurelia

by Diego Argüelles Rojas, Erikson Murrugarra Murrugarra Sifuentes
June 2018
Intermediate to advanced content levelIntermediate to advanced
348 pages
8h 19m
English
Packt Publishing
Content preview from Hands-On Full Stack Web Development with Aurelia

Configuring and defining our first translation files

Our application is ready to start using the i18n framework. There are some steps to get ready with the plugin, so let's explore them.

The first thing we need is to locate our index.html file. This should be located in our main root application folder. Ensure that your <body> section is the same as the following:

 <body aurelia-app="main">
      /* Some content */
 </body>
If you are a Webpack user, locate the index.js file instead of index.html.

Then, in your root app location, create a folder called locales. It will be used to store all your location files. Create one folder per language you want to support. Then, inside each folder, create a file called translation.json. This file will contain ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Front-End Tooling with Gulp, Bower, and Yeoman

Front-End Tooling with Gulp, Bower, and Yeoman

Stefan Baumgartner
Ember.js in Action

Ember.js in Action

Joachim Haagen Skeie

Publisher Resources

ISBN: 9781788833202Supplemental Content