1
0
Fork 1
forked from fedi/mastodon

Fix language selector on preferences page (#2794)

This commit is contained in:
AA4ch1 2017-05-05 03:39:25 +09:00 committed by Matt Jankowski
parent 566e0a772d
commit a50a87457e

View file

@ -5,7 +5,12 @@
= render 'shared/error_messages', object: current_user = render 'shared/error_messages', object: current_user
.fields-group .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, = f.input :allowed_languages,
collection: I18n.available_locales, collection: I18n.available_locales,