Skip to content

Commit

Permalink
fix: locales not being included when srcDir has been changed (#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede authored Mar 29, 2023
1 parent ccef41a commit 7a0a570
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 @@ -116,6 +116,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 7a0a570

Please sign in to comment.