mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-11 23:07:16 +00:00
17 lines
348 B
JavaScript
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' },
|
|
}
|