Skip to content

Commit 26345c1

Browse files
fix: warn on missing vueI18n config in builds (#3992)
Co-authored-by: Bobbie Goede <bobbiegoede@gmail.com>
1 parent 66322e5 commit 26345c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/layers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export async function resolveLayerVueI18nConfigInfo(ctx: I18nNuxtContext, nuxt =
9191
const resolved = await findPath(layer.i18n.vueI18n || 'i18n.config', { cwd: layer.i18nDir, extensions: EXECUTABLE_EXTENSIONS })
9292

9393
if (!resolved) {
94-
if (import.meta.dev && layer.i18n.vueI18n) {
94+
if (layer.i18n.vueI18n) {
9595
logger.warn(`Vue I18n configuration file \`${layer.i18n.vueI18n}\` not found in \`${layer.i18nDir}\`. Skipping...`)
9696
}
9797
continue

0 commit comments

Comments
 (0)