mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
carry lang param
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user