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

@@ -43,6 +43,7 @@ defaults:
ldapdebug: false
sqllog: false
# System defaults
channel: BETA
setup: false
paths:
content: ./content

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

View File

@@ -51,6 +51,7 @@ module.exports = async () => {
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)
})

View File

@@ -24,7 +24,7 @@ module.exports = async () => {
}
}`,
variables: {
channel: 'BETA', // TODO
channel: WIKI.config.channel,
version: WIKI.version
}
})