接口说明
根据项目 id,任务 id,获取翻译文案列表
请求 API
| 名称 | 内容 |
|---|
| 请求方式 | GET |
| Action | ProjectTaskTargets |
请求参数
| 参数名 | 是否必填 | 类型 | 描述 |
|---|
| projectId | required | number | 项目id |
| taskId | required | number | 空间id |
| locale | required | string | 翻译语言 |
| offset | optional | number | 翻页偏移量。default: 0 |
| limit | optional | number | 翻页最大数量。default: 25 |
返回数据
// HTTP Status: 200
{
data: [
{
id: 33038924, // 翻译文案id
sourceTextId: 6610468, // 源文案id
taskId: 37848, // 任务id
lang: 'ar', // 翻译语言
keyText: 'apiupdate', // 源文案key
content: '我是api 更新的翻译文案', // 翻译文案内容
distributed: 0, // 是否发布
tagName: '', // 翻译文案类型,复数为:plural
createdAt: '2021-06-18T06:17:20.000Z', // 创建时间
updatedAt: '2021-06-18T07:05:11.000Z', // 更新时间
operatorId: 2100000220 // 操作人
},
{
id: 33038943,
sourceTextId: 6610444,
taskId: 37848,
lang: 'ar',
keyText: 'plural',
content:
'{num, plural, one {我是个api 更新的翻译 one} other {我是个api 更新的翻译 other}}',
distributed: 0,
tagName: 'plural', // 翻译文案类型,复数为:plural
textExtra: {
// 文案扩展信息
id: '134914', // 文案扩展信息id
textId: '33038943', // 对应的翻译文案id
createTime: '1623999911',
updateTime: '1624128147',
contentZero: '', // 复数信息
contentOne: '我是个api 更新的翻译 one', // 复数信息
contentTwo: '', // 复数信息
contentFew: '', // 复数信息
contentMany: '', // 复数信息
contentOther: '我是个api 更新的翻译 other' // 复数信息
},
createdAt: '2021-06-18T07:05:11.000Z', // 创建时间
updatedAt: '2021-06-18T07:05:11.000Z', // 更新时间
operatorId: 2100000220 // 操作人
}
],
total: 2,
pagination: {
offset: 0,
limit: 12
}
}