humandirect / locale-bundle
A slim bundle for switching languages
Package info
github.com/Human-Direct/locale
Type:symfony-bundle
pkg:composer/humandirect/locale-bundle
1.3.1
2024-08-31 16:05 UTC
Requires
- php: ^8.2
- ext-intl: *
- psr/log: ^1.1|^2.0|^3.0
- symfony/framework-bundle: ^7.0
- symfony/intl: ^7.0
- symfony/templating: ^7.0
- symfony/validator: ^7.0
- symfony/yaml: ^7.0
- webmozart/assert: ^1.10
Requires (Dev)
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.0
- phpstan/phpstan-doctrine: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-symfony: ^1.0
- phpstan/phpstan-webmozart-assert: ^1.0
- symfony/phpunit-bridge: ^7.0
- twig/twig: ^3.0
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 - In the
Request Headerparameter - Based on the
Subdomainhostname
Authors
- The Human Direct team: https://www.humandirect.eu
- Matthias Breddin : @lunetics
- Christophe Willemsen : @kwattro