This repository is basic example of using VueJS hello-world project (Vue CLI 3) with Vue-I18n (https://kazupon.github.io/vue-i18n/), implementing a lazy loading translations.
How it works:
- In any case, en-US file is loaded, so we have a fall back translation ready
- When App.vue is created, it identifies the navigator language and try to load it asynchronously
- By matching the composed version if exist (example: fr-FR)
- if not possible, just try to match with the first letters (in this example: fr)
- if not, remain at en-US
yarn install
Update directory configuration in vue.config.js
yarn run serve
yarn run build
yarn run lint