{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/enterprise-wikimedia-com/json-schema/enterprise-wikimedia-com-language-schema.json",
  "title": "language",
  "description": "Language of a Wikimedia project or article",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/enterprise-wikimedia-com-languages-api-openapi.yml#/components/schemas/language",
  "type": "object",
  "properties": {
    "identifier": {
      "type": "string",
      "description": "Wikimedia [language code](https://www.wikidata.org/wiki/Help:Wikimedia_language_codes/lists/all) of the language"
    },
    "name": {
      "type": "string",
      "description": "Full name of the language"
    },
    "alternate_name": {
      "type": "string",
      "description": "Alternate name of the language"
    },
    "direction": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "ltr",
        "rtl",
        null
      ],
      "description": "Direction the language is written in, `ltr` (left-to-right) or `rtl` (right-to-left)"
    }
  }
}