mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
i18n sign in
This commit is contained in:
1 parent
54272d83eb
commit
af787887d8
6 files changed
+296
-17
No files matched your search
@@ -52,7 +52,8 @@ class ApplicationController < ActionController::Base
|
||||
private
|
||||
|
||||
def with_browser_locale(&)
|
||||
locale = request.env['HTTP_ACCEPT_LANGUAGE'].to_s[BROWSER_LOCALE_REGEXP].to_s
|
||||
locale = params[:lang].presence
|
||||
locale ||= request.env['HTTP_ACCEPT_LANGUAGE'].to_s[BROWSER_LOCALE_REGEXP].to_s
|
||||
|
||||
locale =
|
||||
if locale.starts_with?('en-') && locale != 'en-US'
|
||||
|
||||
Reference in new issue
Block a user