Translation file not editable

What the GithubTranslationFileUnsupported error (422 Unprocessable Content) means, the fields it carries, and the endpoints that return it.

The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/github-translation-file-unsupported. See Errors and status codes for the shape every error shares.

<path> is not a source file .lingo/config.json selects on the default branch.

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
pathstring
localestring
reason"unconfigured" | "locale" | "format" | "unreadable" | "structure" | "repeated"

Example #

json
{
  "detail": "<path> is not a source file .lingo/config.json selects on the default branch.",
  "path": "<path>",
  "locale": "pt-BR",
  "reason": "unconfigured",
  "type": "https://lingo.dev/docs/api/errors/github-translation-file-unsupported",
  "status": 422,
  "title": "Translation file not editable"
}