diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-02-08 01:53:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 01:53:49 +0100 |
commit | 35850f8195b633c60215461ebde48d2e8725fbd2 (patch) | |
tree | 2ba5c513c0494443b3357d4293cdb35e48675a74 /app/views | |
parent | 52c1b86964caddb99e01ff36e928a524bf66ec0e (diff) |
Fix localization of cold-start follow recommendations (#17479)
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/follow_recommendations/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/follow_recommendations/show.html.haml b/app/views/admin/follow_recommendations/show.html.haml index 5b949a165..48c1ad1f2 100644 --- a/app/views/admin/follow_recommendations/show.html.haml +++ b/app/views/admin/follow_recommendations/show.html.haml @@ -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| [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| [human_locale(key), key]}, @language) .filter-subset %strong= t('admin.follow_recommendations.status') |