kql icon indicating copy to clipboard operation
kql copied to clipboard

Querying content of a certain language code

Open bnomei opened this issue 9 months ago • 1 comments

using the x-language header does not work nor can i set the language in the php kql() helper as far as i can tell. https://getkirby.com/docs/guide/api/introduction#language

the forum suggests it might have worked before. maybe in v1? https://forum.getkirby.com/t/kql-querying-pages-for-all-languages/20272

bnomei avatar Sep 04 '23 21:09 bnomei

this post here suggests that a language prop might have existed in v1. https://github.com/getkirby/kql/issues/8#issuecomment-1062859737

const query = {
      query: `site.children.filterBy('uid', 'projekte').first`,
      language: this.$i18n.locale,
      select: {
        title: true,

bnomei avatar Sep 04 '23 21:09 bnomei