接口说明
根据项目 id 获取项目详情
请求 API
| 名称 | 内容 |
|---|
| 请求方式 | GET |
| Action | ProjectDetail |
请求参数
| 参数名 | 是否必填 | 类型 | 描述 |
|---|
| projectId | required | number | 项目id |
返回数据
// HTTP Status: 200
{
data: {
id: 3546, // 项目id
name: 'roc555', // 项目名称
description: '', // 项目描述
creatorId: 2100000220, // 创建人
extra: {
setting: {
textValidate: {
sourceTextValidate: false, // 源文案中文检测
targetTextValidate: false // 翻译文案中文检测
},
autoFillTargetText: {
onUpdate: false, // 修改源文案时,自动填充翻译文案
onCreate: true // 创建源文案时,自动填充翻译文案
},
approval: true, // 审核文案是否开启
key: {
keyWhetherMust: true, // key 是否为必填
showPlural: true, // 是否显示单复数
keyTips:
'https://https://console.volcengine.com//i18ntranslate/project_detail/3546#settings?keyRules', // key规范文档链接
wordCharacterOnly: true, // 仅允许包含英文字母、数字和下划线
startWithoutNumber: true // Key 首位不能为数字
},
task: {
defaultSyncNamespaces: [] // 任务同步空间
}
}
},
createdAt: '2021-06-11T06:19:24.000Z', // 创建时间
updatedAt: '2021-06-18T12:03:46.000Z', // // 更新时间
sourceLocale: 'de', // 源语言
targetLocales: [
// 目标语言
'de',
'en',
'zh',
'ar'
]
}
}