Glossary term target locale ambiguous
The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/glossary-term-target-ambiguous. See Errors and status codes for the shape every error shares.
Cannot save "<text>". Target locale "<targetLocale>" is written in more than one script, so it does not name a single language. Use "<suggestion>".
Fields#
Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.
| Field | Type |
|---|---|
text | string |
targetLocale | string |
suggestions | string[] |
Example#
json
{
"detail": "Cannot save \"<text>\". Target locale \"<targetLocale>\" is written in more than one script, so it does not name a single language. Use \"<suggestion>\".",
"text": "<text>",
"targetLocale": "<targetLocale>",
"suggestions": [
"<suggestion>"
],
"type": "https://lingo.dev/docs/api/errors/glossary-term-target-ambiguous",
"status": 422,
"title": "Glossary term target locale ambiguous"
}Returned by#
PATCH /v2/glossaries/{glossaryId}/terms/{id}POST /v2/engines/{engineId}/glossary-terms/extract-from-vttPOST /v2/glossaries/{glossaryId}/termsPOST /v2/glossaries/{glossaryId}/terms/create-many