Localisation
Localisation is not preconfigured, but can be added easily.
To enable localisation, we recommend vue-i18n
. This plugin supports localised copy text, date formatting, number formatting and crude pluralisation. It also offers a nice set of various ways to organise the localisation depending on your needs.
More plugin options are listed on Awesome Vue.js.
Adding vue-i18n
support
Localisation is fairly easy to add.
- Add localisation files under
src/locales/
- Add an alias
'@locales': 'src/locales'
insrc/config/tooling/config.aliases.js
install vue-i18n --save
- Load and configure
vue-i18n
as a plugin
You can now use localisation in your .vue
components as described in the documentation.