Nuxt/examples/i18n/nuxt.config.js
2017-04-14 11:55:04 +02:00

17 lines
348 B
JavaScript

module.exports = {
build: {
vendor: ['vue-i18n']
},
router: {
middleware: 'i18n'
},
plugins: [
// Will inject the plugin in the $root app and also in the context as `i18n`
{ src: '~plugins/i18n.js', injectAs: 'i18n' }
],
generate: {
routes: ['/', '/about', '/fr', '/fr/about']
},
loading: { color: 'cyan' },
}