Skip to content

Commit

Permalink
[fix] lazy-loading.md (kazupon#1269)
Browse files Browse the repository at this point in the history
change import language path, which depends on the project structure that is described above
  • Loading branch information
ValeriiMakhniuk committed Jun 9, 2021
1 parent f42e81f commit f0e736d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vuepress/guide/lazy-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function loadLanguageAsync(lang) {
}

// If the language hasn't been loaded yet
return import(/* webpackChunkName: "lang-[request]" */ `@/i18n/messages/${lang}.js`).then(
return import(/* webpackChunkName: "lang-[request]" */ `@/lang/${lang}.js`).then(
messages => {
i18n.setLocaleMessage(lang, messages.default)
loadedLanguages.push(lang)
Expand Down

0 comments on commit f0e736d

Please sign in to comment.