Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/guide/advanced/lazy.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export async function loadLocaleMessages(i18n, locale) {
)

// set locale and locale message
i18n.global.setLocaleMessage(locale, messages.default)
i18n.setLocaleMessage(locale, messages.default)

return nextTick()
}
Expand Down Expand Up @@ -102,7 +102,7 @@ Here the code for the vue-router beforeEach hook part of `router.js`:
}

// load locale messages
if (!i18n.global.availableLocales.includes(paramsLocale)) {
if (!i18n.availableLocales.includes(paramsLocale)) {
await loadLocaleMessages(i18n, paramsLocale)
}

Expand Down