Cldr v1.7.0 Cldr.Plug.AcceptLanguage View Source

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

There are no configuration options for this plug.

Link to this section Summary

Link to this section Functions

Link to this function best_match(accept_language) View Source

Return the locale set by Cldr.Plug.AcceptLanguage