Home
Softono

Vue I18n Starter

Open source JavaScript
94
Stars
25
Forks
1
Issues
3
Watchers
5 years
Last Commit

 About Vue I18n Starter

A Vue.js starter project for i18n websites

Platforms

Web Self-hosted

Languages

JavaScript

Links

Need Help Installing Vue I18n Starter?

We provide expert installation service for this software. Our team will install, configure, and secure Vue I18n Starter on your server. plans start at just $30.

Vue I18n Starter

View on GitHub

vue-i18n-starter

A Vue.js starter project for i18n websites

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run all tests
npm test

# sync down lokalise translation strings. You need to create acc and generate token. Not available for free plan.
npm run lokalise:down

Settings

Default language, supported languages and fallback language can be setup inside constants/trans.js.

Inside the router/index.js the beforeEnter guard calls the Trans.routeMiddleware. That will redirect the user to a valid language route if the current one is not supported.