From fc5d3b0930bf3dca02c6fbf979e9ae56e021408b Mon Sep 17 00:00:00 2001 From: Pavel Kuzmin Date: Thu, 17 Oct 2024 16:45:18 +0500 Subject: [PATCH] fix: add translation assets to dist --- src/runtime/server/middleware/i18n-loader.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/runtime/server/middleware/i18n-loader.ts b/src/runtime/server/middleware/i18n-loader.ts index 7de58e89..0ed32b6c 100644 --- a/src/runtime/server/middleware/i18n-loader.ts +++ b/src/runtime/server/middleware/i18n-loader.ts @@ -36,8 +36,6 @@ export default defineEventHandler(async (event) => { const { rootDirs } = config.i18nConfig as ModulePrivateOptionsExtend const { translationDir, fallbackLocale, customRegexMatcher, locales } = config.public.i18nConfig as ModuleOptionsExtend - console.log(555, translationDir) - if (customRegexMatcher && locales && !locales.map(l => l.code).includes(locale)) { // return 404 if route not matching route throw createError({