Kql: querying pages for all languages

What’s the recommended way to get the translated pages when using the Kirby Query Language plugin?

So far, I found that I can translate single fields via "field": "page.url('en') but that’s only a field that comes with this feature and anyway, it would be quite cumbersome to repeat that for every language. Instead, I believe it should be possible, somehow, already setting the language on the query, but I don’t really get it.

What would be nice to have is a result set like:

{
  "pages": [
    {
      "en": {
        "id": "home",
        "slug": "home",
        "title": "Home",
        "url": "http://localhost:3002/en",
        "children": []
      },
      "de": {
        "id": "home",
        "slug": "startseite",
        "title": "Startseite",
        "url": "http://localhost:3002/de",
        "children": []
      }
    }
  ]
}

Is it possible? Any ideas?

Turns out, the best solution is probably to query all languages individually by setting X-Language and the process the data after that to get whatever structure is required.