Closed oldfeel closed 6 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"] } }
metaToResult?from=defaultMessage,to=zt 这个插件只是把本地扫描出来的结果,复制一份到某个 key(zt) 上,如果需要借助外部翻译,需要配置到对应的外部翻译插件,如 google
metaToResult?from=defaultMessage,to=zt