We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
locales
1 parent 411dbf1 commit 727d714Copy full SHA for 727d714
src/gen.ts
@@ -176,7 +176,7 @@ export function generateI18nTypes(
176
const legacyTypes = options.types === 'legacy'
177
const i18nType = legacyTypes ? 'VueI18n' : 'Composer'
178
const generatedLocales = simplifyLocaleOptions(nuxt, options)
179
- const resolvedLocaleType = isString(generatedLocales) ? 'Locale[]' : 'LocaleObject[]'
+ const resolvedLocaleType = isString(generatedLocales.at(0)) ? 'Locale[]' : 'LocaleObject[]'
180
const narrowedLocaleType = normalizedLocales.map(x => JSON.stringify(x.code)).join(' | ') || 'string'
181
182
const globalTranslationTypes = `
0 commit comments