You need to enable JavaScript to run this app.
机器翻译

机器翻译

复制全文
空间翻译文案
翻译文案列表
复制全文
翻译文案列表

接口说明

根据项目 id,空间 id,获取翻译文案列表

请求 API

名称内容
请求方式GET
ActionProjectNamespaceTargets

请求参数

参数名是否必填类型描述
projectIdrequirednumber项目id
namespaceIdrequirednumber空间id
localerequiredstring翻译语言
offsetoptionalnumber翻页偏移量。default: 0
limitoptionalnumber翻页最大数量。default: 25

返回数据

// HTTP Status: 200
{
  data: [
    {
      id: 33038924, // 翻译文案id
      sourceTextId: 6610468, // 源文案id
      namespaceId: 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,
      namespaceId: 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
  }
}
最近更新时间:2026.01.26 17:45:39
这个页面对您有帮助吗?
有用
有用
无用
无用