Glossary term target locale ambiguous

Moses SkodaEngineer1 min read

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.

FieldType
textstring
targetLocalestring
suggestionsstring[]

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-vtt
  • POST /v2/glossaries/{glossaryId}/terms
  • POST /v2/glossaries/{glossaryId}/terms/create-many