Multi language - Get current lang on hbs

Hello togehter,

how i get the collections with filter params on hbs to change some other parts in the language. Example {{lang}} or other idea? How i can i get the current language?

Greetings

Hey @VisionLab :wave:
You’ll need to make use of internal tags to know what language the content is in. Something like this:

{{#post}}
  {{#has tag="#de"}}
    {{#contentFor "lang"}}de{{/contentFor}}
  {{else}}
    {{#contentFor "lang"}}{{@site.lang}}{{/contentFor}}
  {{/has}}
{{/post}}

This utilises block helpers which you can read more about in our docs. Check out our full tutorial on setting up a Multi-language Ghost site:
https://ghost.org/tutorials/multi-language-content/