Skip to content

Commit a729bf3

Browse files
committed
fix: prevent locale string to LocaleObject normalization in generated options
1 parent 08975bd commit a729bf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function simplifyLocaleOptions(
4040
const locales = (options.locales ?? []) as LocaleObject[]
4141

4242
return locales.map(locale => {
43-
if (!hasLocaleObjects) locale.code
43+
if (!hasLocaleObjects) return locale.code
4444
return formatLocaleFiles(nuxt, locale, options.experimental?.generatedLocaleFilePathFormat)
4545
})
4646
}

0 commit comments

Comments
 (0)