mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
Fix paths & typo
This commit is contained in:
parent
763ca011e9
commit
6f84f69b7a
@ -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'
|
||||
|
@ -6,7 +6,7 @@ module.exports = {
|
||||
router: {
|
||||
middleware: 'i18n'
|
||||
},
|
||||
plugins: ['~plugins/i18n.js',],
|
||||
plugins: ['~/plugins/i18n.js',],
|
||||
generate: {
|
||||
routes: ['/', '/about', '/fr', '/fr/about']
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -1,4 +1,4 @@
|
||||
<script>
|
||||
import About from '~pages/_lang/about'
|
||||
import About from '~/pages/_lang/about'
|
||||
export default About
|
||||
</script>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<script>
|
||||
import Index from '~pages/_lang/index'
|
||||
import Index from '~/pages/_lang/index'
|
||||
export default Index
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user