Do not fetch environment variables to determine default locale (#6618)
The default locale is now set by config.
This commit is contained in:
parent
b66ec3bf95
commit
778b37790b
2 changed files with 3 additions and 5 deletions
|
@ -48,7 +48,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def languages
|
||||
[ENV.fetch('DEFAULT_LOCALE', I18n.default_locale)]
|
||||
[I18n.default_locale]
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue