marcel-mathias-nolte/contao-add-browser-language-as-body-class

Add a class for the browsers accepted language to the body element and add a insert tag for it

0.2 2022-03-06 13:29 UTC

This package is auto-updated.

Last update: 2024-10-18 15:13:50 UTC


README

Adds a class depending on the browser's accepted language to the body element. You can define the used languages and the fallback language on every root page.

Insert tags

You can use the following insert tags:

  • {{ifblng::}} ... {{ifblng::}} .. {{ifblng}} If browser language ...
  • {{ifnblng::}} ... {{ifnblng}} If not browser language