Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contao 4 Add Browser Language As Body Class Bundle

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages