about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-09-16 21:59:41 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-09-16 14:59:41 +0200
commit48d77ea1ebd6096a6ad5e265d99fa20e7a965276 (patch)
tree3ca87dd3a5a77b5b7e7791c77c1cfa33c9a4059e /app/helpers
parentefec5072304217019bd401c2202c6eb61019db89 (diff)
Fix filterable_languages method of SettingsHelper (#4966)
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/settings_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb
index 369a45680..14776b354 100644
--- a/app/helpers/settings_helper.rb
+++ b/app/helpers/settings_helper.rb
@@ -41,7 +41,7 @@ module SettingsHelper
   end
 
   def filterable_languages
-    I18n.available_locales.map { |locale| locale.to_s.split('-').first.to_sym }.uniq
+    LanguageDetector.instance.language_names.select(&HUMAN_LOCALES.method(:key?))
   end
 
   def hash_to_object(hash)