LocalePlug

plug
#1

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:

  1. locale in query parameters
  2. locale in cookies
  3. accept-language header

You can find some examples from the unit test

Any advice is welcome :slight_smile:

6 Likes