Skip to content

Commit

Permalink
fix: generated options property typo (#1997)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Apr 15, 2023
1 parent e3e446e commit a8d3ee0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export function generateLoaderOptions(
for (const configPath of vueI18nConfigPaths) {
const additionalVueI18nConfigCode = generateVueI18nConfigration(configPath, ({ absolute: absolutePath, relative: relativePath, relativeBase }, { dir, base, ext }) => {
const configImportKey = makImportKey(relativeBase, dir, base)
return `await mergeMessages(${rootKey}.${key}.messasges, context, (${genDynamicImport(genImportSpecifier(configImportKey, ext, absolutePath, NUXT_I18N_CONFIG_PROXY_ID, NUXT_I18N_COMPOSABLE_DEFINE_CONFIG), { comment: `webpackChunkName: "${normalizeWithUnderScore(relativePath)}_${getHash(absolutePath)}"` })}))\n`
return `await mergeMessages(${rootKey}.${key}.messages, context, (${genDynamicImport(genImportSpecifier(configImportKey, ext, absolutePath, NUXT_I18N_CONFIG_PROXY_ID, NUXT_I18N_COMPOSABLE_DEFINE_CONFIG), { comment: `webpackChunkName: "${normalizeWithUnderScore(relativePath)}_${getHash(absolutePath)}"` })}))\n`
})
if (additionalVueI18nConfigCode != null) {
genCodes += ` ${additionalVueI18nConfigCode}`
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/gen.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ export const resolveNuxtI18nOptions = async (context) => {
deepCopy(message, messages[locale])
}
}
await mergeMessages(nuxtI18nOptions.vueI18n.messasges, context, (() => import(\\"\\\\u0000@nuxtjs/i18n/__config__?target=../../i18n.custom.ts&c=faa288dc\\" /* webpackChunkName: \\"i18n_custom_ts_faa288dc\\" */)))
await mergeMessages(nuxtI18nOptions.vueI18n.messasges, context, (() => import(\\"\\\\u0000@nuxtjs/i18n/__config__?target=../../../vue-i18n.options.js&c=84df1640\\" /* webpackChunkName: \\"vue_i18n_options_js_84df1640\\" */)))
await mergeMessages(nuxtI18nOptions.vueI18n.messages, context, (() => import(\\"\\\\u0000@nuxtjs/i18n/__config__?target=../../i18n.custom.ts&c=faa288dc\\" /* webpackChunkName: \\"i18n_custom_ts_faa288dc\\" */)))
await mergeMessages(nuxtI18nOptions.vueI18n.messages, context, (() => import(\\"\\\\u0000@nuxtjs/i18n/__config__?target=../../../vue-i18n.options.js&c=84df1640\\" /* webpackChunkName: \\"vue_i18n_options_js_84df1640\\" */)))
return nuxtI18nOptions
}
Expand Down

0 comments on commit a8d3ee0

Please sign in to comment.