Skip to content

Commit

Permalink
fix: not loading vueI18n config from a nested path (#2460)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede authored Oct 1, 2023
1 parent ea69667 commit 461efaf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion specs/vue_i18n_custom_options.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ await setup({
// overrides
nuxtConfig: {
i18n: {
vueI18n: './vue-i18n.options.ts'
vueI18n: './config/vue-i18n.options.ts'
}
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export async function resolveVueI18nConfigInfo(options: NuxtI18nOptions, buildDi
const absolutePath = await resolvePath(configPathInfo.relative, { cwd: rootDir, extensions: EXECUTABLE_EXTENSIONS })
if (await isExists(absolutePath)) {
const parsed = parsePath(absolutePath)
const loadPath = join(configPathInfo.relativeBase, parsed.base)
const loadPath = join(configPathInfo.relativeBase, relative(rootDir, absolutePath))

configPathInfo.absolute = absolutePath
configPathInfo.type = getLocaleType(absolutePath)
Expand Down

0 comments on commit 461efaf

Please sign in to comment.