coopdevs / timeoverflow

🏦 ⌛ A time banking system
https://www.timeoverflow.org
GNU Affero General Public License v3.0
145 stars 67 forks source link

fix locale was not set until terms acceptance, so the locale selected was lost #712

Closed nflorentin closed 9 months ago

nflorentin commented 9 months ago

set_locale was called after check_for_terms_acceptance! before action. So the locale was never saved until terms acceptance, causing some flash messages in wrong locale (ex: timeout session).

For more clarity, I also renamed append_before_action into before_action (because it is just an alias).

I think it solves #694

markets commented 9 months ago

Makes sense! Thanks @nflorentin