# Language

### language/list

Produces a list of all known languages and their three-letter ISO639-3 codes. The list is hard-coded within the Tvheadend source.

```
{
   "entries" : [
      {
         "val" : "Undetermined",
         "key" : "und"
      },
      {
         "key" : "aar",
         "val" : "Afar"
      },
      {
         "val" : "Abkhazian",
         "key" : "abk"
      }, ...
   ]
}
```

### language/locale

Produces a similar list to language/list but also including the full RFC3066 locale reference for those locales which have been compiled into Tvheadend.

<pre><code>{
  "entries" : [
  ...
<strong>    {
</strong>      "key": "elx",
      "val": "Elamite"
    },
    {
      "key": "eng",
      "val": "English"
    },
    {
      "key": "eng_US",
      "val": "English (US)"
    },
    {
      "key": "eng_GB",
      "val": "English (GB)"
    },
    {
      "key": "epo",
      "val": "Esperanto"
    }, ...
  ]
}
</code></pre>

### language/ui\_locale

Produces a list in the same format as language/locale but containing only those locales which are supported by TVHeadend (ie have translations available).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tvheadend.org/documentation/development/json-api/api-description/language.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
