Adding more languages to our application – Internationalization!
One of the more interesting (and useful) features for every web application is internationalization. We are developing an application for the FIFA World Cup Russia 2018, so, based on that, it would be awesome if our application supported multiple languages for all the users worldwide.
For this purpose, we will use the official aurelia-i18n
plugin; this will be used to get the current app location. This plugin is based on the i18next
library, with some very interesting characteristics such as those listed:
- Translation loaders
- Language detection
- Product localization
- Flexibility and scalability
The last one is the most important feature. With scalability in mind, you can implement internationalization with just one configuration file for smaller projects, and if you need to implement it on a bigger project, just create multiple translation files and load them according to the user's need.
Installation and configuration
Depending on which...