mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Update i18n example
This commit is contained in:
parent
2f32d03f83
commit
b26d3d6b6f
@ -1,16 +1,13 @@
|
||||
module.exports = {
|
||||
loading: { color: 'cyan' },
|
||||
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' }
|
||||
],
|
||||
plugins: ['~plugins/i18n.js',],
|
||||
generate: {
|
||||
routes: ['/', '/about', '/fr', '/fr/about']
|
||||
},
|
||||
loading: { color: 'cyan' },
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "nuxt-i18n",
|
||||
"dependencies": {
|
||||
"nuxt": "latest",
|
||||
"nuxt": "1.0.0-alpha.3",
|
||||
"vue-i18n": "^7.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user