Fix paths & typo

This commit is contained in:
Sébastien Chopin 2017-07-08 19:55:39 +02:00
parent 763ca011e9
commit 6f84f69b7a
5 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
export default function ({ app, store, route, params, error, redirect, hotReload }) {
// Check if middleware called from hot-reloading, ignore
// If middleware is called from hot-reloading, ignore it
if (hotReload) return
// Get locale from params
const locale = params.lang || 'en'

View File

@ -6,7 +6,7 @@ module.exports = {
router: {
middleware: 'i18n'
},
plugins: ['~plugins/i18n.js',],
plugins: ['~/plugins/i18n.js',],
generate: {
routes: ['/', '/about', '/fr', '/fr/about']
}

View File

@ -1,8 +1,8 @@
{
"name": "nuxt-i18n",
"dependencies": {
"nuxt": "1.0.0-alpha.3",
"vue-i18n": "^7.0.0"
"nuxt": "latest",
"vue-i18n": "^7.0.5"
},
"scripts": {
"dev": "nuxt",

View File

@ -1,4 +1,4 @@
<script>
import About from '~pages/_lang/about'
import About from '~/pages/_lang/about'
export default About
</script>

View File

@ -1,4 +1,4 @@
<script>
import Index from '~pages/_lang/index'
import Index from '~/pages/_lang/index'
export default Index
</script>