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
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^7.2 || ^8.0
- contao-community-alliance/composer-plugin: ^2.4.0 || 3.*
- contao/core-bundle: ^4.9
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