lunetics / locale-bundle
A Bundle for switching Languages
Installs: 1 127 900
Dependents: 11
Suggesters: 0
Security: 0
Stars: 186
Watchers: 17
Forks: 75
Type:symfony-bundle
pkg:composer/lunetics/locale-bundle
Requires
- php: ^8.1
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/framework-bundle: ^5.4 || ^6.0
- symfony/intl: ^5.4 || ^6.0
- symfony/templating: ^5.4 || ^6.0
- symfony/validator: ^5.4 || ^6.0
- symfony/yaml: ^5.4 || ^6.0
Requires (Dev)
- ext-intl: *
- dg/bypass-finals: ^1.4
- symfony/flex: ^1.0 || ^2.0
- symfony/form: ^5.4 || ^6.0
- symfony/phpunit-bridge: >=5.4
- twig/twig: ^1.41 || ^2.0 || ^3.0
Suggests
- ext-intl: Needed for displaying the country name in the locale language
This package is auto-updated.
Last update: 2025-10-28 23:27:08 UTC
README
This bundle allows you to guess the Locale from different parameters in your Symfony applications.
Background
The locale can be guessed from different parameters in your applications :
- In the
Queryparameter - In the
Routeparameters - In the
Browserpreferences - In a
Cookieor theSessionif the locale has already been identified - Based on the
Subdomainhostname
Documentation
Read the Documentation for 3.x
Read the Documentation for 2.2
License
This bundle is released under the MIT License
Authors
Matthias Breddin : @lunetics
Christophe Willemsen : @kwattro