anezi / preferred-locale
Automatic selection of user's preferred locale
dev-master
2018-12-08 08:49 UTC
Requires
- php: ^7.1
- symfony/http-foundation: ^2.4 | ^3.0 | ^4.0
- symfony/http-kernel: ^2.4 | ^3.0 | ^4.0
- symfony/routing: ^2.1 | ^3.0 | ^4.0
This package is auto-updated.
Last update: 2024-12-08 23:07:33 UTC
README
Preferred locale event subscriber for Symfony projects.
Features:
- If the locale is not defined in the URL that the subscriber checks in the session, otherwise it checks the browser languages.
- The locale is displayed in the URL in lowercase and using a hyphen.
- It converts the locale displayed in the URL into Symfony-compatible locale.