Change languages to be listed under standard instead of native name in admin UI (#17485)

This commit is contained in:
Eugen Rochko
2022-02-09 04:15:38 +01:00
committed by GitHub
parent fd3a45e348
commit 3aebe711fd
9 changed files with 29 additions and 13 deletions

View File

@ -13,7 +13,7 @@
.filter-subset.filter-subset--with-select
%strong= t('admin.follow_recommendations.language')
.input.select.optional
= select_tag :language, options_for_select(I18n.available_locales.map { |key| key.to_s.split(/[_-]/).first.to_sym }.uniq.map { |key| [human_locale(key), key]}, @language)
= select_tag :language, options_for_select(I18n.available_locales.map { |key| key.to_s.split(/[_-]/).first.to_sym }.uniq.map { |key| [standard_locale_name(key), key]}, @language)
.filter-subset
%strong= t('admin.follow_recommendations.status')