about summary refs log tree commit diff
path: root/app/views/admin
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-02-08 01:53:49 +0100
committerGitHub <noreply@github.com>2022-02-08 01:53:49 +0100
commit35850f8195b633c60215461ebde48d2e8725fbd2 (patch)
tree2ba5c513c0494443b3357d4293cdb35e48675a74 /app/views/admin
parent52c1b86964caddb99e01ff36e928a524bf66ec0e (diff)
Fix localization of cold-start follow recommendations (#17479)
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/follow_recommendations/show.html.haml2
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')