diff --git a/i18n.config.ts b/i18n.config.ts new file mode 100644 index 0000000..dc2edeb --- /dev/null +++ b/i18n.config.ts @@ -0,0 +1,4 @@ +export default defineI18nConfig(() => ({ + legacy: false, + fallbackLocale: 'en', +})) diff --git a/nuxt.config.ts b/nuxt.config.ts index cc2ce7f..bcc6312 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -33,18 +33,18 @@ export default defineNuxtConfig({ }, }, i18n: { - locales: [ - { - code: 'en-US', - iso: 'en-US', - name: 'English (United States)', - file: 'en-US.json', - }, - ], + strategy: 'no_prefix', lazy: true, langDir: 'locales', - defaultLocale: 'en-US', - strategy: 'no_prefix', + defaultLocale: 'en', + locales: [ + { + code: 'en', + iso: 'en', + name: 'English (United States)', + file: 'en.json', + }, + ], }, colorMode: { preference: 'system',