about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorAA4ch1 <aa4ch1@gmail.com>2017-05-05 03:39:25 +0900
committerMatt Jankowski <mjankowski@thoughtbot.com>2017-05-04 14:39:25 -0400
commita50a87457e81f9b3d02733c22174cd05f69f1254 (patch)
tree3862c603513de17a2a2a2935baaf237676ab2d4e /app/views
parent566e0a772d12b698d8a0ea08265179a68a477d43 (diff)
Fix language selector on preferences page (#2794)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/settings/preferences/show.html.haml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/settings/preferences/show.html.haml b/app/views/settings/preferences/show.html.haml
index 10618ebf6..b64fd7c96 100644
--- a/app/views/settings/preferences/show.html.haml
+++ b/app/views/settings/preferences/show.html.haml
@@ -5,7 +5,12 @@
   = render 'shared/error_messages', object: current_user
 
   .fields-group
-    = f.input :locale, collection: I18n.available_locales, wrapper: :with_label, include_blank: false, label_method: lambda { |locale| human_locale(locale) }
+    = f.input :locale,
+      collection: I18n.available_locales,
+      wrapper: :with_label,
+      include_blank: false,
+      label_method: lambda { |locale| human_locale(locale) },
+      selected: I18n.locale
 
     = f.input :allowed_languages,
       collection: I18n.available_locales,