fix(core): Make mergeI18n options optional
This commit is contained in:
parent
1264a07afe
commit
73dc20e1d2
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ export function mergeI18n(designs, options) {
|
|||
if (obj[section]) {
|
||||
if (typeof i18n[lang][section] === 'undefined') i18n[lang][section] = {}
|
||||
for (const [key, val] of Object.entries(obj[section])) {
|
||||
if (__keepTranslation(key, options[section])) i18n[lang][section][key] = val
|
||||
if (__keepTranslation(key, options?.[section])) i18n[lang][section][key] = val
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue