{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-translate/json-schema/ibm-translate-languages-schema.json",
  "title": "Languages",
  "description": "The response type for listing supported languages.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-translate-languages-api-openapi.yml#/components/schemas/Languages",
  "type": "object",
  "properties": {
    "languages": {
      "type": "array",
      "description": "A list of supported languages.",
      "items": {
        "$ref": "#/$defs/Language"
      }
    }
  },
  "$defs": {
    "Language": {
      "type": "object",
      "description": "Response payload for languages.",
      "properties": {
        "language": {
          "type": "string",
          "description": "The language code for the language (for example, zh for Mandarin Chinese)."
        },
        "language_name": {
          "type": "string",
          "description": "The name of the language in English (for example, Mandarin Chinese)."
        },
        "native_language_name": {
          "type": "string",
          "description": "The native name of the language (for example, 中文 for Mandarin Chinese)."
        },
        "country_code": {
          "type": "string",
          "description": "The country code for the language (for example, CN for Mandarin Chinese)."
        },
        "words_separated": {
          "type": "boolean",
          "description": "Indicates whether words of the language are separated by whitespace."
        },
        "direction": {
          "type": "string",
          "description": "Indicates the direction of the language (right_to_left or left_to_right).",
          "enum": [
            "right_to_left",
            "left_to_right"
          ]
        },
        "supported_as_source": {
          "type": "boolean",
          "description": "Indicates whether the language can be used as a source language for translation."
        },
        "supported_as_target": {
          "type": "boolean",
          "description": "Indicates whether the language can be used as a target language for translation."
        },
        "identifiable": {
          "type": "boolean",
          "description": "Indicates whether the language supports automatic detection."
        }
      }
    }
  }
}