术语表中的术语译文已存在
出现此问题时,API 会返回 409 Conflict。其 type 为 https://lingo.dev/docs/api/errors/glossary-term-translation-taken。所有错误的通用结构,请参阅错误和状态码。
无法保存“<text>”。术语表中已存在该文本在“<targetLocale>”下的记录。请编辑现有记录,或修改文本。
字段#
除标准成员 type、status、title 和 detail 外,响应体还包含以下字段。detail 文本由这些字段生成,客户端也可以据此显示自定义文本。
| 字段 | 类型 |
|---|---|
text | string |
targetLocale | string |
示例#
json
{
"detail": "Cannot save \"<text>\". The glossary already holds its row for \"<targetLocale>\". Edit that row instead, or change the text.",
"text": "<text>",
"targetLocale": "<targetLocale>",
"type": "https://lingo.dev/docs/api/errors/glossary-term-translation-taken",
"status": 409,
"title": "Glossary term translation taken"
}返回此错误的端点#
PATCH /v2/glossaries/{glossaryId}/terms/{id}POST /v2/glossaries/{glossaryId}/termsPOST /v2/glossaries/{glossaryId}/terms/create-many