]> cat aescling's git repositories - mastodon.git/commitdiff
Fix language selector on preferences page (#2794)
authorAA4ch1 <aa4ch1@gmail.com>
Thu, 4 May 2017 18:39:25 +0000 (03:39 +0900)
committerMatt Jankowski <mjankowski@thoughtbot.com>
Thu, 4 May 2017 18:39:25 +0000 (14:39 -0400)
app/views/settings/preferences/show.html.haml

index 10618ebf64fabd19d07dfe93838a4bc99937ce2d..b64fd7c9690262123dce3b538900212659b78261 100644 (file)
@@ -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,