接口说明
根据项目 id,空间 id,新增或更新翻译文案
请求 API
| 名称 | 内容 |
|---|
| 请求方式 | POST |
| Action | ProjectNamespaceTargetUpdate |
请求参数
| 参数名 | 是否必填 | 类型 | 描述 |
|---|
| projectId | required | number | 项目id |
| namespaceId | required | number | 空间id |
| targets | required | array | object [] 翻译文案数组 |
| key | required | string | targets[x].key - 文案key |
| content | required | string | targets[x].content -文案内容 |
| locale | required | string | targets[x].locale - 翻译语言 |
| zero | optional | string | targets[x].zero - 复数信息 |
| one | optional | string | targets[x].one - 复数信息 |
| two | optional | string | targets[x].two -复数信息 |
| few | optional | string | targets[x].few - 复数信息 |
| many | optional | string | targets[x].many - 复数信息 |
| other | optional | string | targets[x].other - 复数信息 |
返回数据
// HTTP Status: 200
{
message: 'success'
}