Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.96 KB

CHANGELOG.md

File metadata and controls

59 lines (40 loc) · 1.96 KB

0.2.9 (2020-06-15)

  • Bump requirements

0.2.8 (2019-11-13)

  • Thanks @dirkholzapfel and @angelikatyborska for adding a whitelist option and fixing a failure when given an invalid locale

0.2.7 (2019-06-24)

  • Thanks @mtarnovan and @angelikatyborska for fixing an issue when a cookie used a language that was not supported

0.2.6 (2019-02-21)

  • Thanks @mtarnovan for fixing a compilation warning

0.2.5 (2019-02-21)

  • Thanks @mtarnovan and @ohrite for relaxing the gettext and phoenix dependencies
  • Thanks @narnach for making the locale stick and using the http referer header.
  • bumped deps

0.2.4 (2017-09-28)

  • Thanks @dirkholzapfel for bugfixing an accept-language header like "zh-Hans-CN;q=0.5"

0.2.3 (2017-09-28)

  • Thanks @dirkholzapfel for adding fallback to "nl" if "nl-nl" is given in accept header
  • reformatted code here and there
  • bumped dependency versions

0.2.2 (2017-03-31)

bumped dependency versions

0.2.1 (2017-02-20)

bumped dependency versions

0.2.0 (2016-11-29)

Now also taking into account cookie settings for locale as suggested and initially written by @dirkholzapfel (Thank you!). The current precedence and fallback chain is now :

  • locale in url (i.e. /nl-nl/)
  • cookie
  • request headers accept-language
  • default locale from config

This update contains a deprecation waring for the Plug config the new config is now :

plug SetLocale, gettext: MyApp.Gettext, default_locale: "en-gb", cookie_key: "locale")

The cookie key is optional, dont forget if you want to use this feature that you application actually stores the preferred locale on the cookie with the same key :)

0.1.3 (2016-11-25)

Including a bigfix by @dirkholzapfel which implement correct handling for URLs without given locale, Thanks !

0.1.2 (2016-11-07)

Support fallback of base language, for example a requested /en-gb/ can fallback to /en/

0.1.1 (2016-11-07)

Root paths not redirect to /en-gb in stead of /en-gb/

0.1.0 (2016-11-03)

  • Initial commit