Skip to content

Commit 574f711

Browse files
committed
chore: fix i18n module warning about absolute paths
upstreaming from nimbus-town/nimbus#11
1 parent 7731174 commit 574f711

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nuxt.config.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,13 @@ export default defineNuxtConfig({
311311
lazy: true,
312312
strategy: 'no_prefix',
313313
detectBrowserLanguage: false,
314-
langDir: resolve('locales'),
314+
// relative to i18n dir on rootDir: not yet v4 compat layout
315+
langDir: '../locales',
315316
defaultLocale: 'en-US',
316317
experimental: {
317318
generatedLocaleFilePathFormat: 'relative',
318319
},
319-
vueI18n: resolve('./config/i18n.config.ts'),
320+
vueI18n: './config/i18n.config.ts',
320321
},
321322
pwa,
322323
staleDep: {

0 commit comments

Comments
 (0)