From 3db7b525d152376ee1e6890bc18d7e26fe36743b Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Wed, 29 Mar 2023 15:07:21 +0200 Subject: [PATCH] fix: locales not being included when srcDir has been changed --- src/layers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layers.ts b/src/layers.ts index 25bd6bc56..4f0ecbf16 100644 --- a/src/layers.ts +++ b/src/layers.ts @@ -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[] ) }