[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(i18n): package count translations (#646)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Sandy S Kuo
autofix-ci[bot]
and committed by
GitHub
4e089762 592982d0

+90 -77
+17 -9
app/components/Package/ListToolbar.vue
··· 115 115 > 116 116 <template v-if="showingFiltered"> 117 117 {{ 118 - $t('filters.count.showing_filtered', { 119 - filtered: filteredCount.toLocaleString(), 120 - count: totalCount.toLocaleString(), 121 - }) 118 + $t( 119 + 'filters.count.showing_filtered', 120 + { 121 + filtered: $n(filteredCount), 122 + count: $n(totalCount), 123 + }, 124 + totalCount, 125 + ) 122 126 }} 123 127 </template> 124 128 <template v-else> 125 - {{ $t('filters.count.showing_all', { count: totalCount.toLocaleString() }) }} 129 + {{ $t('filters.count.showing_all', { count: $n(totalCount) }, totalCount) }} 126 130 </template> 127 131 </div> 128 132 ··· 132 136 class="text-sm font-mono text-fg-muted" 133 137 > 134 138 {{ 135 - $t('filters.count.showing_paginated', { 136 - pageSize: pageSize === 'all' ? filteredCount : pageSize, 137 - count: filteredCount.toLocaleString(), 138 - }) 139 + $t( 140 + 'filters.count.showing_paginated', 141 + { 142 + pageSize: pageSize === 'all' ? $n(filteredCount) : pageSize, 143 + count: $n(filteredCount), 144 + }, 145 + filteredCount, 146 + ) 139 147 }} 140 148 </div> 141 149
+1 -1
app/components/PaginationControls.vue
··· 181 181 $t('filters.pagination.showing', { 182 182 start: startItem, 183 183 end: endItem, 184 - total: totalItems.toLocaleString(), 184 + total: $n(totalItems), 185 185 }) 186 186 }} 187 187 </span>
+9 -4
app/pages/search.vue
··· 680 680 class="text-fg-muted text-sm mt-4 font-mono" 681 681 > 682 682 {{ 683 - $t('filters.count.showing_paginated', { 684 - pageSize: preferredPageSize === 'all' ? visibleResults.total : preferredPageSize, 685 - count: visibleResults.total.toLocaleString(), 686 - }) 683 + $t( 684 + 'filters.count.showing_paginated', 685 + { 686 + pageSize: 687 + preferredPageSize === 'all' ? $n(visibleResults.total) : preferredPageSize, 688 + count: $n(visibleResults.total), 689 + }, 690 + visibleResults.total, 691 + ) 687 692 }} 688 693 </p> 689 694 </div>
+3 -3
i18n/locales/ar.json
··· 642 642 "nav_label": "التصفح" 643 643 }, 644 644 "count": { 645 - "showing_filtered": "{filtered} من {total} حزمة", 646 - "showing_all": "{total} حزمة | حزمة واحدة | حزمتان | {total} حزم | {total} حزمة | {total} حزمة", 647 - "showing_paginated": "{pageSize} من {total} حزمة" 645 + "showing_filtered": "{filtered} من {count} حزمة", 646 + "showing_all": "{count} حزمة | حزمة واحدة | حزمتان | {count} حزم | {count} حزمة | {count} حزمة", 647 + "showing_paginated": "{pageSize} من {count} حزمة" 648 648 }, 649 649 "table": { 650 650 "security_warning": "تحذير أمني",
+3 -3
i18n/locales/az.json
··· 661 661 "nav_label": "Səhifələmə" 662 662 }, 663 663 "count": { 664 - "showing_filtered": "{total} paketdən {filtered}", 665 - "showing_all": "{total} paket", 666 - "showing_paginated": "{total} paketdən {pageSize}" 664 + "showing_filtered": "{count} paketdən {filtered}", 665 + "showing_all": "{count} paket", 666 + "showing_paginated": "{count} paketdən {pageSize}" 667 667 }, 668 668 "table": { 669 669 "security_warning": "Təhlükəsizlik xəbərdarlığı",
+3 -3
i18n/locales/es.json
··· 668 668 "nav_label": "Paginación" 669 669 }, 670 670 "count": { 671 - "showing_filtered": "{filtered} de {total} paquetes", 672 - "showing_all": "{total} paquetes", 673 - "showing_paginated": "{pageSize} de {total} paquetes" 671 + "showing_filtered": "{filtered} de {count} paquetes", 672 + "showing_all": "{count} paquetes", 673 + "showing_paginated": "{pageSize} de {count} paquetes" 674 674 }, 675 675 "table": { 676 676 "security_warning": "Advertencia de seguridad",
+3 -3
i18n/locales/fr-FR.json
··· 671 671 "nav_label": "Pagination" 672 672 }, 673 673 "count": { 674 - "showing_filtered": "{filtered} sur {total} paquets", 675 - "showing_all": "{total} paquets", 676 - "showing_paginated": "{pageSize} sur {total} paquets" 674 + "showing_filtered": "{filtered} sur {count} paquets", 675 + "showing_all": "{count} paquets", 676 + "showing_paginated": "{pageSize} sur {count} paquets" 677 677 }, 678 678 "table": { 679 679 "security_warning": "Avertissement de sécurité",
+3 -3
i18n/locales/hu-HU.json
··· 659 659 "nav_label": "Lapozás" 660 660 }, 661 661 "count": { 662 - "showing_filtered": "{filtered} / {total} csomag", 663 - "showing_all": "{total} csomag", 664 - "showing_paginated": "{pageSize} / {total} csomag" 662 + "showing_filtered": "{filtered} / {count} csomag", 663 + "showing_all": "{count} csomag", 664 + "showing_paginated": "{pageSize} / {count} csomag" 665 665 }, 666 666 "table": { 667 667 "security_warning": "Biztonsági figyelmeztetés",
+3 -3
i18n/locales/it-IT.json
··· 636 636 "nav_label": "Paginazione" 637 637 }, 638 638 "count": { 639 - "showing_filtered": "{filtered} di {total} pacchetti", 640 - "showing_all": "{total} pacchetti", 641 - "showing_paginated": "{pageSize} di {total} pacchetti" 639 + "showing_filtered": "{filtered} di {count} pacchetti", 640 + "showing_all": "{count} pacchetti", 641 + "showing_paginated": "{pageSize} di {count} pacchetti" 642 642 }, 643 643 "table": { 644 644 "security_warning": "Avviso di sicurezza",
+3 -3
i18n/locales/pl-PL.json
··· 712 712 "nav_label": "Paginacja" 713 713 }, 714 714 "count": { 715 - "showing_filtered": "{filtered} z {total} pakietów", 716 - "showing_all": "{total} pakietów", 717 - "showing_paginated": "{pageSize} z {total} pakietów" 715 + "showing_filtered": "{filtered} z {count} pakietów", 716 + "showing_all": "{count} pakietów", 717 + "showing_paginated": "{pageSize} z {count} pakietów" 718 718 }, 719 719 "table": { 720 720 "security_warning": "Ostrzeżenie bezpieczeństwa",
+3 -3
i18n/locales/ru-RU.json
··· 652 652 "nav_label": "Пагинация" 653 653 }, 654 654 "count": { 655 - "showing_filtered": "{filtered} из {total}", 656 - "showing_all": "{total}", 657 - "showing_paginated": "{pageSize} из {total}" 655 + "showing_filtered": "{filtered} из {count}", 656 + "showing_all": "{count}", 657 + "showing_paginated": "{pageSize} из {count}" 658 658 }, 659 659 "table": { 660 660 "security_warning": "Предупреждение безопасности",
+3 -3
i18n/locales/uk-UA.json
··· 661 661 "nav_label": "Нумерація сторінок" 662 662 }, 663 663 "count": { 664 - "showing_filtered": "{filtered} з {total} пакетів", 665 - "showing_all": "{total} пакетів", 666 - "showing_paginated": "{pageSize} з {total} пакетів" 664 + "showing_filtered": "{filtered} з {count} пакетів", 665 + "showing_all": "{count} пакетів", 666 + "showing_paginated": "{pageSize} з {count} пакетів" 667 667 }, 668 668 "table": { 669 669 "security_warning": "Попередження безпеки",
+3 -3
i18n/locales/zh-CN.json
··· 668 668 "nav_label": "分页" 669 669 }, 670 670 "count": { 671 - "showing_filtered": "匹配 {filtered} 的 {total} 个包", 672 - "showing_all": "{total} 个包", 673 - "showing_paginated": "已显示 {pageSize} 个, 共 {total} 个包" 671 + "showing_filtered": "匹配 {filtered} 的 {count} 个包", 672 + "showing_all": "{count} 个包", 673 + "showing_paginated": "已显示 {pageSize} 个,共 {count} 个包" 674 674 }, 675 675 "table": { 676 676 "no_packages": "安全性警告",
+3 -3
lunaria/files/ar-EG.json
··· 642 642 "nav_label": "التصفح" 643 643 }, 644 644 "count": { 645 - "showing_filtered": "{filtered} من {total} حزمة", 646 - "showing_all": "{total} حزمة | حزمة واحدة | حزمتان | {total} حزم | {total} حزمة | {total} حزمة", 647 - "showing_paginated": "{pageSize} من {total} حزمة" 645 + "showing_filtered": "{filtered} من {count} حزمة", 646 + "showing_all": "{count} حزمة | حزمة واحدة | حزمتان | {count} حزم | {count} حزمة | {count} حزمة", 647 + "showing_paginated": "{pageSize} من {count} حزمة" 648 648 }, 649 649 "table": { 650 650 "security_warning": "تحذير أمني",
+3 -3
lunaria/files/az.json
··· 661 661 "nav_label": "Səhifələmə" 662 662 }, 663 663 "count": { 664 - "showing_filtered": "{total} paketdən {filtered}", 665 - "showing_all": "{total} paket", 666 - "showing_paginated": "{total} paketdən {pageSize}" 664 + "showing_filtered": "{count} paketdən {filtered}", 665 + "showing_all": "{count} paket", 666 + "showing_paginated": "{count} paketdən {pageSize}" 667 667 }, 668 668 "table": { 669 669 "security_warning": "Təhlükəsizlik xəbərdarlığı",
+3 -3
lunaria/files/es-419.json
··· 668 668 "nav_label": "Paginación" 669 669 }, 670 670 "count": { 671 - "showing_filtered": "{filtered} de {total} paquetes", 672 - "showing_all": "{total} paquetes", 673 - "showing_paginated": "{pageSize} de {total} paquetes" 671 + "showing_filtered": "{filtered} de {count} paquetes", 672 + "showing_all": "{count} paquetes", 673 + "showing_paginated": "{pageSize} de {count} paquetes" 674 674 }, 675 675 "table": { 676 676 "security_warning": "Advertencia de seguridad",
+3 -3
lunaria/files/es-ES.json
··· 668 668 "nav_label": "Paginación" 669 669 }, 670 670 "count": { 671 - "showing_filtered": "{filtered} de {total} paquetes", 672 - "showing_all": "{total} paquetes", 673 - "showing_paginated": "{pageSize} de {total} paquetes" 671 + "showing_filtered": "{filtered} de {count} paquetes", 672 + "showing_all": "{count} paquetes", 673 + "showing_paginated": "{pageSize} de {count} paquetes" 674 674 }, 675 675 "table": { 676 676 "security_warning": "Advertencia de seguridad",
+3 -3
lunaria/files/fr-FR.json
··· 671 671 "nav_label": "Pagination" 672 672 }, 673 673 "count": { 674 - "showing_filtered": "{filtered} sur {total} paquets", 675 - "showing_all": "{total} paquets", 676 - "showing_paginated": "{pageSize} sur {total} paquets" 674 + "showing_filtered": "{filtered} sur {count} paquets", 675 + "showing_all": "{count} paquets", 676 + "showing_paginated": "{pageSize} sur {count} paquets" 677 677 }, 678 678 "table": { 679 679 "security_warning": "Avertissement de sécurité",
+3 -3
lunaria/files/hu-HU.json
··· 659 659 "nav_label": "Lapozás" 660 660 }, 661 661 "count": { 662 - "showing_filtered": "{filtered} / {total} csomag", 663 - "showing_all": "{total} csomag", 664 - "showing_paginated": "{pageSize} / {total} csomag" 662 + "showing_filtered": "{filtered} / {count} csomag", 663 + "showing_all": "{count} csomag", 664 + "showing_paginated": "{pageSize} / {count} csomag" 665 665 }, 666 666 "table": { 667 667 "security_warning": "Biztonsági figyelmeztetés",
+3 -3
lunaria/files/it-IT.json
··· 636 636 "nav_label": "Paginazione" 637 637 }, 638 638 "count": { 639 - "showing_filtered": "{filtered} di {total} pacchetti", 640 - "showing_all": "{total} pacchetti", 641 - "showing_paginated": "{pageSize} di {total} pacchetti" 639 + "showing_filtered": "{filtered} di {count} pacchetti", 640 + "showing_all": "{count} pacchetti", 641 + "showing_paginated": "{pageSize} di {count} pacchetti" 642 642 }, 643 643 "table": { 644 644 "security_warning": "Avviso di sicurezza",
+3 -3
lunaria/files/pl-PL.json
··· 712 712 "nav_label": "Paginacja" 713 713 }, 714 714 "count": { 715 - "showing_filtered": "{filtered} z {total} pakietów", 716 - "showing_all": "{total} pakietów", 717 - "showing_paginated": "{pageSize} z {total} pakietów" 715 + "showing_filtered": "{filtered} z {count} pakietów", 716 + "showing_all": "{count} pakietów", 717 + "showing_paginated": "{pageSize} z {count} pakietów" 718 718 }, 719 719 "table": { 720 720 "security_warning": "Ostrzeżenie bezpieczeństwa",
+3 -3
lunaria/files/ru-RU.json
··· 652 652 "nav_label": "Пагинация" 653 653 }, 654 654 "count": { 655 - "showing_filtered": "{filtered} из {total}", 656 - "showing_all": "{total}", 657 - "showing_paginated": "{pageSize} из {total}" 655 + "showing_filtered": "{filtered} из {count}", 656 + "showing_all": "{count}", 657 + "showing_paginated": "{pageSize} из {count}" 658 658 }, 659 659 "table": { 660 660 "security_warning": "Предупреждение безопасности",
+3 -3
lunaria/files/uk-UA.json
··· 661 661 "nav_label": "Нумерація сторінок" 662 662 }, 663 663 "count": { 664 - "showing_filtered": "{filtered} з {total} пакетів", 665 - "showing_all": "{total} пакетів", 666 - "showing_paginated": "{pageSize} з {total} пакетів" 664 + "showing_filtered": "{filtered} з {count} пакетів", 665 + "showing_all": "{count} пакетів", 666 + "showing_paginated": "{pageSize} з {count} пакетів" 667 667 }, 668 668 "table": { 669 669 "security_warning": "Попередження безпеки",
+3 -3
lunaria/files/zh-CN.json
··· 668 668 "nav_label": "分页" 669 669 }, 670 670 "count": { 671 - "showing_filtered": "匹配 {filtered} 的 {total} 个包", 672 - "showing_all": "{total} 个包", 673 - "showing_paginated": "已显示 {pageSize} 个, 共 {total} 个包" 671 + "showing_filtered": "匹配 {filtered} 的 {count} 个包", 672 + "showing_all": "{count} 个包", 673 + "showing_paginated": "已显示 {pageSize} 个,共 {count} 个包" 674 674 }, 675 675 "table": { 676 676 "no_packages": "安全性警告",