Nuxt/examples/i18n/nuxt.config.js
2017-10-31 21:43:55 +08:00

14 lines
232 B
JavaScript

module.exports = {
loading: { color: 'cyan' },
build: {
vendor: ['vue-i18n']
},
router: {
middleware: 'i18n'
},
plugins: ['~/plugins/i18n.js'],
generate: {
routes: ['/', '/about', '/fr', '/fr/about']
}
}