Skip to content
A Vue.js starter project for i18n websites
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build chore: Initial commit. Nov 26, 2017
config chore: Initial commit. Nov 26, 2017
src feat: Add a helper for routes that are outside of the main route page Jan 22, 2019
static
test/unit refactor: update the tests and move to a named export Apr 22, 2018
.babelrc chore: Initial commit. Nov 26, 2017
.editorconfig chore: Initial commit. Nov 26, 2017
.eslintignore chore: Initial commit. Nov 26, 2017
.eslintrc.js refactor: update the tests and move to a named export Apr 22, 2018
.gitignore chore: Initial commit. Nov 26, 2017
.postcssrc.js
README.md chore: text cleanup Jun 24, 2018
index.html
package-lock.json chore: add lokalise script Jun 24, 2018
package.json

README.md

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.

You can’t perform that action at this time.