@self.items: Show only items of current language

-I have a job listings page in /jobs. The job pages are e.g. /jobs/job1
-The default language is german
-Some jobs have been translated to english

I want, that when the active language is english, only the jobs translated to english are listed in the job listings page.

I have already tried deactivating the language fallback but the german jobs are still listed.

Is there maybe a way to check the language of a page?

btw. you guys are doing an awesome job, I am so glad that I always get help here in this forum!

you can filter out certain pages based on their language:

{% for page in collection if page.language == 'de' %}
...output stuff...
{% endfor %}

This will ensure the output only displays the page only if it’s German.