LocalePlug is a plug to set locale for the web application.
It detects locale by order and set it for the specified Gettext backend if the locales files exist:
locale
in query parameterslocale
in cookiesaccept-language
header
You can find some examples from the unit test
Any advice is welcome