Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/plugins/i18n/src/composable/useTranslate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down