Eugen Rochko
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
app/controllers/concerns/localized.rb
|
|
@ -17,7 +17,11 @@ module Localized |
|
|
|
end |
|
|
|
|
|
|
|
def default_locale |
|
|
|
request_locale || I18n.default_locale |
|
|
|
if ENV['DEFAULT_LOCALE'].present? |
|
|
|
I18n.default_locale |
|
|
|
else |
|
|
|
request_locale || I18n.default_locale |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
def request_locale |
|
|
|