Querying language information with kql plugin

The API has an endpoint to retrieve a list of languages with their codes and names. Also, in Kirby itself, one can get the language list from the kirby.languages function.

Yet, in kql, when trying to retrieve all languages including their code and name, the kirby.languages query only returns an array of language codes.

{
  "query": "kirby.languages"
}

returns:

{
  "code": 200,
  "result": [
    "de",
    "fr",
    "it",
    "rm"
  ],
  "status": "ok"
}

I wondered whether this is a bug or if there is another way to retrieve the list of languages including their code and name in kql itself.

1 Like