mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-12-22 19:25:40 +00:00
i18n: merge-strings: fix issues with only one locale
This commit is contained in:
parent
34fd140a9e
commit
c7628c1474
|
@ -11,6 +11,10 @@ glob('src/locales/!(messages).json', {}, (e, files) => {
|
||||||
messages.push(locale_messages)
|
messages.push(locale_messages)
|
||||||
}
|
}
|
||||||
console.log('Merging messages...')
|
console.log('Merging messages...')
|
||||||
messages = merge.all(messages)
|
if (messages && messages.length > 1) {
|
||||||
|
messages = merge.all(messages)
|
||||||
|
} else {
|
||||||
|
messages = messages[0] // single locale mode
|
||||||
|
}
|
||||||
fs.writeFileSync('src/locales/messages.json', JSON.stringify(messages), {})
|
fs.writeFileSync('src/locales/messages.json', JSON.stringify(messages), {})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue