Překlad termínu v glosáři již existuje
API při tomto problému vrací 409 Conflict. Hodnota type je https://lingo.dev/docs/api/errors/glossary-term-translation-taken. Společnou strukturu všech chyb najdete v části Chyby a stavové kódy.
Nelze uložit "<text>". Glosář již obsahuje řádek pro "<targetLocale>". Upravte stávající řádek nebo změňte text.
Pole#
Kromě standardních položek type, status, title a detail obsahuje tělo odpovědi následující pole. Z nich se sestavuje text detail, takže klient může místo něj zobrazit vlastní text.
| Pole | Typ |
|---|---|
text | string |
targetLocale | string |
Příklad#
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"
}Koncové body, které chybu vracejí#
PATCH /v2/glossaries/{glossaryId}/terms/{id}POST /v2/glossaries/{glossaryId}/termsPOST /v2/glossaries/{glossaryId}/terms/create-many