feat: translations (wip)

This commit is contained in:
Nick committed 2019-06-08 21:00:12 -04:00
1 parent f93ea02975
commit 0f1c3a1658
11 files changed
+71 -65

No files matched your search

+1
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)
})