Skip to content

Commit 799cbc2

Browse files
authored
Merge pull request #1 from cannc4/master
Empty properties get converted
2 parents c9b8e80 + da872c8 commit 799cbc2

File tree

4 files changed

+466
-439
lines changed

4 files changed

+466
-439
lines changed

lib/parse-result.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function parseResult (result, language, props = []) {
4141
if (props.includes(key)) {
4242
// Find data of specified language, otherwise fallback to default
4343
const res = data[index][key][language] || data[index][key][defaults.language]
44-
if (res) {
44+
if (res || res === '') {
4545
Object.assign(data[index], { [key]: res })
4646
}
4747
}

0 commit comments

Comments
 (0)