Closed MinecraftXwinP closed 6 years ago
outline.yaml will be setting file for diplomat.
version: '1' preprocessors: - type: chinese options: - mode: t2s from: zh-TW to: zh-CN - type: copy options: - from: en - to: fr output: - selectors: - admin - manage template: type: js options: filename: "{{.Lang}}.control-panel.js"
selector select keys by prefix
Translations will put in regular yaml file, likes:
admin: message: hello: zh-TW: '您好' en: 'Hello!'
to support nested key structure.
language will be determine by last segment
admin.message.hello."zh-TW" admin.message.hello."en"
outline.yaml will be setting file for diplomat.
selector select keys by prefix
Translations will put in regular yaml file, likes:
to support nested key structure.
language will be determine by last segment
admin.message.hello."zh-TW" admin.message.hello."en"