summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorFabian Schneider <fabbbbbi+git@googlemail.com>2019-02-20 22:58:53 +0000
committerStan Hu <stanhu@gmail.com>2019-02-20 22:58:53 +0000
commita32fd49dd87414fcb8a9c979bd19b57355758c6e (patch)
treeb797cfd4d7315be01162301fbf6ea98b99692fa5 /app/helpers
parent09532e38bd7c612fd3d0e6ac7e17ec7bc648302f (diff)
downloadgitlab-ce-a32fd49dd87414fcb8a9c979bd19b57355758c6e.tar.gz
Move language setting to preferences
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/preferences_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb
index bc1742e8167..eed529f93db 100644
--- a/app/helpers/preferences_helper.rb
+++ b/app/helpers/preferences_helper.rb
@@ -62,6 +62,10 @@ module PreferencesHelper
Gitlab::ColorSchemes.for_user(current_user).css_class
end
+ def language_choices
+ Gitlab::I18n::AVAILABLE_LANGUAGES.map { |value, label| [label, value] }
+ end
+
private
# Ensure that anyone adding new options updates `DASHBOARD_CHOICES` too