Skip to content

Cldr Plugs version 1.1.0

Compare
Choose a tag to compare
@kipcole9 kipcole9 released this 17 Jul 08:05
· 33 commits to main since this release

Enhancements

  • Adds :assigns as an optional source of the locale in Cldr.Plug.SetLocale. The library ex_cldr_routes introduces localised routing. These localised routes will set the conn.assigns[:cldr_locale] and therefore may be used as an indicator of the users locale preference if no other locale source (like the session, path or params) can be identified. Since the routes locale is tied to the route, not necessarily the users preference, this should be considered a lower priority locale source. The default :from parameter is updated to reflect this and is now set to [:session, :accept_language, :query, :path, :assigns].