Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying content of a certain language code #50

Closed
bnomei opened this issue Sep 4, 2023 · 1 comment
Closed

Querying content of a certain language code #50

bnomei opened this issue Sep 4, 2023 · 1 comment

Comments

@bnomei
Copy link

bnomei commented Sep 4, 2023

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 bnomei changed the title Querying content of a language Querying content of a certain language code Sep 4, 2023
@bnomei
Copy link
Author

bnomei commented Sep 4, 2023

this post here suggests that a language prop might have existed in v1.
#8 (comment)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants