chore: use latest i18n v9 (#3059)

This commit is contained in:
TAKAHASHI Shuuji 2024-11-24 22:36:16 +09:00 committed by GitHub
parent e6ebde3ac4
commit f4b667fef6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 313 additions and 332 deletions

View file

@ -311,8 +311,12 @@ export default defineNuxtConfig({
lazy: true,
strategy: 'no_prefix',
detectBrowserLanguage: false,
langDir: 'locales',
// relative to i18n dir on rootDir: not yet v4 compat layout
langDir: '../locales',
defaultLocale: 'en-US',
experimental: {
generatedLocaleFilePathFormat: 'relative',
},
vueI18n: './config/i18n.config.ts',
},
pwa,