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?


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

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

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: