feat: translations (wip)

This commit is contained in:
Nick
2019-06-08 21:00:12 -04:00
parent f93ea02975
commit 0f1c3a1658
11 changed files with 71 additions and 65 deletions

View File

@@ -28,6 +28,7 @@ module.exports = async (localeCode) => {
let lcObj = {}
_.forEach(strings, row => {
if (_.includes(row.key, '::')) { return }
if (_.isEmpty(row.value)) { row.value = row.key }
_.set(lcObj, row.key.replace(':', '.'), row.value)
})