Nuxt/examples/i18n/nuxt.config.js

17 lines
348 B
JavaScript
Raw Normal View History

2017-02-08 16:33:13 +00:00
module.exports = {
2017-04-14 09:55:04 +00:00
build: {
vendor: ['vue-i18n']
2017-02-10 12:05:05 +00:00
},
2017-02-08 17:49:16 +00:00
router: {
middleware: 'i18n'
},
2017-04-14 09:55:04 +00:00
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']
2017-02-08 16:33:13 +00:00
},
2017-04-14 09:55:04 +00:00
loading: { color: 'cyan' },
2017-02-08 16:33:13 +00:00
}