Skip to content

Commit

Permalink
fix: locales not being included when srcDir has been changed
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Mar 29, 2023
1 parent c1d4ec9 commit 3db7b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ export const getLayerLangPaths = (nuxt: Nuxt) => {
nuxt.options._layers
.filter(layer => layer.config.i18n?.langDir != null)
// @ts-ignore
.map(layer => pathe.resolve(layer.config.rootDir, layer.config.i18n.langDir)) as string[]
.map(layer => pathe.resolve(layer.config.srcDir, layer.config.i18n.langDir)) as string[]
)
}

0 comments on commit 3db7b52

Please sign in to comment.