lunetics / locale-bundle
A Bundle for switching Languages
Installs: 1 084 306
Dependents: 11
Suggesters: 0
Security: 0
Stars: 187
Watchers: 18
Forks: 76
Type:symfony-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: 2024-10-28 21:19:31 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
Query
parameter - In the
Route
parameters - In the
Browser
preferences - In a
Cookie
or theSession
if the locale has already been identified - Based on the
Subdomain
hostname
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