API Reference Cldr Plug v1.3.0
modules
Modules
Functions to support setting the locale for Cldr and/or Gettext from the session.
Parses the accept-language header if one is available and sets
conn.private[:cldr_locale]
accordingly. The locale can
be later retrieved by Cldr.Plug.AcceptLanguage.get_cldr_locale/1
Puts the Cldr and/or Gettext locales derived from the accept-language
header, a query parameter, a url parameter, a body parameter, the route
or the session for the current process with Cldr.put_locale/2
and/or
Gettext.put_locale/2
.
Puts the CLDR locale in the session.