ant-tool / atool-l10n

🌍 localized message files generating automatic solution
46 stars 10 forks source link

to=zt 没有生成繁体字 #5

Closed oldfeel closed 6 years ago

oldfeel commented 7 years ago
module.exports = {
  "middlewares": {
    "summary": ["summary?sourcePattern=i18n-messages/**/*.json"],
    "process": [
      "fetchLocal?source=locales,skip", "metaToResult?from=defaultMessage,to=zt", "youdao?apiname=iamatestmanx,apikey=2137553564", "reduce?-autoPick,autoReduce[]=local,autoReduce[]=meta"
    ],
    "emit": ["save?dest=locales"]
  }
}
jaredleechn commented 6 years ago

metaToResult?from=defaultMessage,to=zt 这个插件只是把本地扫描出来的结果,复制一份到某个 key(zt) 上,如果需要借助外部翻译,需要配置到对应的外部翻译插件,如 google