carry lang param

This commit is contained in:
Pete Matsyburka committed 2026-10-26 17:57:03 +02:00
1 parent af4672084d
commit d3c92cecfa
8 files changed
+29 -23

No files matched your search

@@ -99,6 +99,10 @@ class ApplicationController < ActionController::Base
I18n.with_locale(locale, &)
end
def lang
params[:lang].presence
end
def with_browser_locale(&)
return yield if I18n.locale != :'en-US' && I18n.locale != :en