diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2018-04-21 01:14:31 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-04-20 18:14:31 +0200 |
commit | 87e3f0a41d2a2d223c663365a199c01989afc8ed (patch) | |
tree | 173df498a23c663458a203676d59815c731658d6 /app/controllers/concerns | |
parent | 23106844a10606dd0e04c8382281d5ff80d4bdd9 (diff) |
Fix spec for sr-Latn (#7203)
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/localized.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/concerns/localized.rb b/app/controllers/concerns/localized.rb index abd85ea27..145549bcd 100644 --- a/app/controllers/concerns/localized.rb +++ b/app/controllers/concerns/localized.rb @@ -29,10 +29,14 @@ module Localized end def preferred_locale - http_accept_language.preferred_language_from(I18n.available_locales) + http_accept_language.preferred_language_from(available_locales) end def compatible_locale - http_accept_language.compatible_language_from(I18n.available_locales) + http_accept_language.compatible_language_from(available_locales) + end + + def available_locales + I18n.available_locales.reverse end end |