feat: translations (wip)
This commit is contained in:
		| @@ -43,6 +43,7 @@ defaults: | ||||
|       ldapdebug: false | ||||
|       sqllog: false | ||||
|     # System defaults | ||||
|     channel: BETA | ||||
|     setup: false | ||||
|     paths: | ||||
|       content: ./content | ||||
|   | ||||
| @@ -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) | ||||
|     }) | ||||
|  | ||||
|   | ||||
| @@ -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) | ||||
|       }) | ||||
|  | ||||
|   | ||||
| @@ -24,7 +24,7 @@ module.exports = async () => { | ||||
|         } | ||||
|       }`, | ||||
|       variables: { | ||||
|         channel: 'BETA', // TODO | ||||
|         channel: WIKI.config.channel, | ||||
|         version: WIKI.version | ||||
|       } | ||||
|     }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user