Yesod.Core.Handler.languages behavior change

12 views
Skip to first unread message

Pat Brisbin

unread,
Apr 8, 2021, 10:12:42 AM4/8/21
to Yesod Web Framework
Hey folks-

I just wanted to give a heads up that the order of languages returned by the languages function will change in 1.6.19.0.

Until then, it prioritized the language set in the user's session:

- Session
- Query
- Cookie
- Accept-Language header

It will now prioritize the query parameter first:

- Query
- Session
- Cookie
- Accept-Language header

This happens to be the order of values in YesodRequest{reqLangs} already, so languages will now just be a pass-through to reading that.


Thanks,
Pat

Reply all
Reply to author
Forward
0 new messages