Skip to content

Commit

Permalink
chore: fix i18n module warning about absolute paths (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Nov 23, 2024
1 parent 7e20678 commit c591d71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,13 @@ export default defineNuxtConfig({
lazy: true,
strategy: 'no_prefix',
detectBrowserLanguage: false,
langDir: resolve('./locales'),
// relative to i18n dir on rootDir: not yet v4 compat layout
langDir: '../locales',
defaultLocale: 'en-US',
experimental: {
generatedLocaleFilePathFormat: 'relative',
},
vueI18n: resolve('./config/i18n.config.ts'),
vueI18n: './config/i18n.config.ts',
},
pwa,
staleDep: {
Expand Down

0 comments on commit c591d71

Please sign in to comment.