PHPackages                             geniv/nette-locale-switch - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. geniv/nette-locale-switch

ActiveLibrary[Localization &amp; i18n](/categories/localization)

geniv/nette-locale-switch
=========================

Locale switch component for Nette Framework

v2.0.6(7y ago)01.1kMITPHPPHP &gt;=7.0

Since May 29Pushed 7y ago2 watchersCompare

[ Source](https://github.com/geniv/nette-locale-switch)[ Packagist](https://packagist.org/packages/geniv/nette-locale-switch)[ RSS](/packages/geniv-nette-locale-switch/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (15)Used By (0)

Locale switch
=============

[](#locale-switch)

Installation
------------

[](#installation)

```
$ composer require geniv/nette-locale-switch
```

or

```
"geniv/nette-locale-switch": "^2.0"
```

require:

```
"php": ">=7.0",
"nette/nette": ">=2.4",
"geniv/nette-locale": ">=2.0",
"geniv/nette-general-form": ">=1.0"
```

neon configure:

```
services:
    - LocaleSwitch
```

usage:

```
protected function createComponentLocaleSwitch(ILocaleSwitch $localeSwitch, IAliasRouter $aliasRouter): ILocaleSwitch
{
    //$localeSwitch->setTemplatePath(__DIR__ . '/templates/header-lang.latte');
    $domain = $aliasRouter->getDomainAlias();
    if ($domain) {
        $localeSwitch->setDomain($domain);
    }
    return $localeSwitch;
}
```

usage:

```
{control localeSwitch}
or
{control localeSwitch, $idLocale}
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% 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 ~47 days

Recently: every ~67 days

Total

13

Last Release

2751d ago

Major Versions

v1.0.5 → v2.0.02018-03-14

PHP version history (3 changes)v1.0.0PHP &gt;=5.6.0

v2.0.0PHP &gt;=7.0.0

v2.0.5PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc7e200eb4e96d99020297684063209160ea1347d8a2a8b4cd769d532204867e?d=identicon)[geniv](/maintainers/geniv)

---

Top Contributors

[![geniv](https://avatars.githubusercontent.com/u/563659?v=4)](https://github.com/geniv "geniv (35 commits)")[![MartinFugess](https://avatars.githubusercontent.com/u/4451137?v=4)](https://github.com/MartinFugess "MartinFugess (1 commits)")

---

Tags

nettelocaleswitchgeniv

### Embed Badge

![Health badge](/badges/geniv-nette-locale-switch/health.svg)

```
[![Health](https://phpackages.com/badges/geniv-nette-locale-switch/health.svg)](https://phpackages.com/packages/geniv-nette-locale-switch)
```

###  Alternatives

[vladahejda/livetranslator

Translator for Nette (PHP framework).

147.2k1](/packages/vladahejda-livetranslator)

PHPackages © 2026

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