localization-zh-cn-plugin icon indicating copy to clipboard operation
localization-zh-cn-plugin copied to clipboard

Add review workflow and use python script to put en_us and zh_cn content togerther

Open yuezhuangshi opened this issue 2 years ago • 0 comments

Submitter checklist

Here is an online tool which can help you to do the review work.

Desired reviewers

@jenkinsci/chinese-localization-sig

Description

close #114

使用 workflow 和 python 脚本将变更文件的原始内容和中文内容以 markdown 的形式评论在 PR 中,方便 review。

实现效果可参考:https://github.com/yuezhuangshi/localization-zh-cn-plugin/pull/14#issuecomment-1169650356

已知问题:

  • 目前无法精确识别到行改动,只能以文件级别将原始内容和中文内容评论在 PR 中
  • 英文文件是将中文文件的 _zh_CN 去掉来寻找的,例如:core/src/main/resources/widgets/HistoryPageFilter/queue-items.zh_CN.properties 对应的原始文件为 core/src/main/resources/widgets/HistoryPageFilter/queue-items.properties,可能会存在找不到的情况(源仓库中可能只有 .jelly,而没有 .properties

yuezhuangshi avatar Jun 29 '22 08:06 yuezhuangshi