feat(i18n): enabled fallback

zio/stable
Anthony Fu 2022-11-29 15:07:42 +08:00
parent 793ae3cb4e
commit 00ae9d0b6c
1 changed files with 5 additions and 2 deletions

View File

@ -90,10 +90,13 @@ export default defineNuxtConfig({
].sort((a, b) => a.code.localeCompare(b.code)),
strategy: 'no_prefix',
detectBrowserLanguage: false,
// TODO:
// lazy: true,
langDir: 'locales',
defaultLocale: 'en-US',
vueI18n: {
fallbackLocale: 'en-US',
},
// TODO:
// lazy: true,
},
})