Skip to content

Commit

Permalink
Locale cookie experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
javierm committed Apr 25, 2024
1 parent fd7672c commit 1ef5320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def switch_locale(&action)
current_user.update(locale: locale)
end

session[:locale] = locale
session[:locale] = locale if locale == params[:locale]
I18n.with_locale(locale, &action)
end

Expand Down

0 comments on commit 1ef5320

Please sign in to comment.