以下为在您的项目中生成翻译状态的 SVG 勋章标志。翻译项目勋章 API 可通过以下方式进行调用。
项目徽章:
translation_sets
sub_projects
翻译集徽章:
all_count
untranslated_count
percent_translated
waiting_count
warnings_count
fuzzy_count
已翻译项目
待翻译项目
示例
修改以下示例链接的 project_path=pressbooks
为翻译项目路径。 info=percent_translated
可替换为以上参数, locale=zh-cn
为地区。
https://wpfanyi.com/pressbooks/?gp_badge=true&project_path=pressbooks&locale=zh-cn&info=percent_translated
此处以 Pressbooks Subscriptions 翻译项目勋章为例,对应使用的 info
参数将显示对应勋章。
项目徽章:
翻译集徽章:
已翻译项目
待翻译项目
示例
修改 project_path=pressbooks-subscriptions
即可得到当前项目。
https://wpfanyi.com/pressbooks/?gp_badge=true&project_path=pressbooks-subscriptions&locale=zh-cn&info=percent_translated