Skip to content

Commit

Permalink
fix: set default values for locales and restructureDir (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede authored Sep 5, 2024
1 parent ec74f56 commit 88a7bf0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 88a7bf0

Please sign in to comment.