PHPackages                             marcel-mathias-nolte/contao-add-browser-language-as-body-class - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. marcel-mathias-nolte/contao-add-browser-language-as-body-class

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

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(4y ago)06LGPL-3.0-or-laterPHPPHP ^7.2 || ^8.0

Since Mar 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/marcel-mathias-nolte/contao-add-browser-language-as-body-class)[ Packagist](https://packagist.org/packages/marcel-mathias-nolte/contao-add-browser-language-as-body-class)[ Docs](https://github.com/marcel-mathias-nolte)[ RSS](/packages/marcel-mathias-nolte-contao-add-browser-language-as-body-class/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Contao 4 Add Browser Language As Body Class Bundle
==================================================

[](#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
-----------

[](#insert-tags)

You can use the following insert tags:

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

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1528d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe1614023eb8f4e11d483390fcecb78f9edf2c344f34590e8db4288e2c09ad22?d=identicon)[marcel-mathias-nolte](/maintainers/marcel-mathias-nolte)

---

Top Contributors

[![marcel-mathias-nolte](https://avatars.githubusercontent.com/u/2349435?v=4)](https://github.com/marcel-mathias-nolte "marcel-mathias-nolte (1 commits)")

### Embed Badge

![Health badge](/badges/marcel-mathias-nolte-contao-add-browser-language-as-body-class/health.svg)

```
[![Health](https://phpackages.com/badges/marcel-mathias-nolte-contao-add-browser-language-as-body-class/health.svg)](https://phpackages.com/packages/marcel-mathias-nolte-contao-add-browser-language-as-body-class)
```

###  Alternatives

[tastaturberuf/anystores

Location management and geographic search

121.7k](/packages/tastaturberuf-anystores)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
