diff --git a/packages/plugins/i18n/src/composable/useTranslate.ts b/packages/plugins/i18n/src/composable/useTranslate.ts index 24e300c9..377794f4 100644 --- a/packages/plugins/i18n/src/composable/useTranslate.ts +++ b/packages/plugins/i18n/src/composable/useTranslate.ts @@ -62,7 +62,7 @@ const removeI18n = (key = []) => { const ensureI18n = (obj, send) => { const { locales } = i18nResource - const contents = Object.fromEntries(locales.map(({ lang }) => [lang, obj[lang]])) + const contents = Object.fromEntries(locales.map(({ lang }) => [lang, obj[lang] || ''])) const langs = getLangs() const key = obj.key || utils.guid()