难题和调整
- 产品原型页面翻译,工作量双份,更新和维护困难
- 翻 译质量不好校验,文档同学参与困难
- 操作方式比较原始
在终端完成翻译工作
- 基础使用
- 创建项目
- 创建部件(与 git 集成)
- 如何与 git 集成
- 创建唯一身份 key
- 使用独立分支
- 安装 weblate 终端应用
支持的功能
- 不同部件中 相同 key 的翻译不一致时提示
- 对于翻译内容的校验
- 项目挂件 和 新人引导页
- 利用 api 实现二次封装 https://docs.weblate.org/en/latest/api.html
通过 api 查询组件详情
https://docs.weblate.org/en/latest/api.html#get--api-components-(string-project)-(string-component)-
GET /api/components/(string:project)/(string:component)/
Returns information about translation component.
Parameters
project (string) – Project URL slug
component (string) – Component URL slug