Change languages to be listed under standard instead of native name in admin UI (#17485)
This commit is contained in:
		@@ -147,7 +147,7 @@
 | 
			
		||||
 | 
			
		||||
          %tr
 | 
			
		||||
            %th= t('simple_form.labels.defaults.locale')
 | 
			
		||||
            %td= @account.user_locale
 | 
			
		||||
            %td= standard_locale_name(@account.user_locale)
 | 
			
		||||
            %td
 | 
			
		||||
 | 
			
		||||
          %tr
 | 
			
		||||
 
 | 
			
		||||
@@ -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')
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
        •
 | 
			
		||||
 | 
			
		||||
      - if preview_card.language.present?
 | 
			
		||||
        = human_locale(preview_card.language)
 | 
			
		||||
        = standard_locale_name(preview_card.language)
 | 
			
		||||
        •
 | 
			
		||||
 | 
			
		||||
      = t('admin.trends.links.shared_by_over_week', count: preview_card.history.reduce(0) { |sum, day| sum + day.accounts })
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user