From 88a7bf08ccfd57e0f6ad2c61f0c97f085259c181 Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Thu, 5 Sep 2024 06:15:33 +0200 Subject: [PATCH] fix: set default values for `locales` and `restructureDir` (#3088) --- src/constants.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 72f1d4b20..89fba1eb8 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -27,8 +27,7 @@ export const DEFAULT_COOKIE_KEY = 'i18n_redirected' export const SWITCH_LOCALE_PATH_LINK_IDENTIFIER = 'nuxt-i18n-slp' export const DEFAULT_OPTIONS = { - // TODO: set to default 'i18n' before v9 release - restructureDir: undefined, + restructureDir: 'i18n', experimental: { localeDetector: '', switchLocalePathLinkSSR: false, @@ -58,8 +57,7 @@ export const DEFAULT_OPTIONS = { defaultLocaleRouteNameSuffix: 'default', strategy: STRATEGY_PREFIX_EXCEPT_DEFAULT, lazy: false, - // TODO: set to default 'locales' before v9 release - langDir: null, + langDir: 'locales', rootRedirect: undefined, detectBrowserLanguage: { alwaysRedirect: false,