diff options
-rw-r--r-- | src/data/language.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/data/language.js b/src/data/language.js index f91e123d..99b60d83 100644 --- a/src/data/language.js +++ b/src/data/language.js @@ -72,7 +72,11 @@ export function unflattenLanguageSpec(flat, reference) { const setNestedProp = (obj, key, value) => { const recursive = (o, k) => { if (k.length === 1) { - o[k[0]] = value; + if (typeof o[k[0]] === 'object') { + o[k[0]] = {...o[k[0]], _: value}; + } else { + o[k[0]] = value; + } return; } |