mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-22 05:45:41 +01: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)
|
||||
}
|
||||
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), {})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user