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

Maintainers

Package info

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

Homepage

Type:contao-bundle

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

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.2 2022-03-06 13:29 UTC

This package is auto-updated.

Last update: 2026-02-18 18:24:59 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