From 80bf80c611e6f6d4fc818df3568d0ab9d3b97bc7 Mon Sep 17 00:00:00 2001 From: Sandy S Kuo <62935115+kuosandys@users.noreply.github.com> Date: Sun, 1 Feb 2026 14:17:01 +0100 Subject: [PATCH 1/2] fix(i18n): package count --- app/components/Package/ListToolbar.vue | 26 +++++++++++++++++--------- app/components/PaginationControls.vue | 2 +- app/pages/search.vue | 13 +++++++++---- i18n/locales/ar.json | 6 +++--- i18n/locales/az.json | 6 +++--- i18n/locales/es.json | 6 +++--- i18n/locales/fr-FR.json | 6 +++--- i18n/locales/hu-HU.json | 6 +++--- i18n/locales/it-IT.json | 6 +++--- i18n/locales/pl-PL.json | 6 +++--- i18n/locales/ru-RU.json | 6 +++--- i18n/locales/uk-UA.json | 6 +++--- i18n/locales/zh-CN.json | 6 +++--- lunaria/files/ar-EG.json | 6 +++--- lunaria/files/az.json | 6 +++--- lunaria/files/es-419.json | 8 ++++---- lunaria/files/es-ES.json | 6 +++--- lunaria/files/fr-FR.json | 6 +++--- lunaria/files/hu-HU.json | 6 +++--- lunaria/files/it-IT.json | 6 +++--- lunaria/files/pl-PL.json | 6 +++--- lunaria/files/ru-RU.json | 6 +++--- lunaria/files/uk-UA.json | 6 +++--- lunaria/files/zh-CN.json | 6 +++--- 24 files changed, 91 insertions(+), 78 deletions(-) diff --git a/app/components/Package/ListToolbar.vue b/app/components/Package/ListToolbar.vue index cf00f08613..b16aa0ce4a 100644 --- a/app/components/Package/ListToolbar.vue +++ b/app/components/Package/ListToolbar.vue @@ -115,14 +115,18 @@ function getSortKeyLabelKey(key: SortKey): string { > @@ -132,10 +136,14 @@ function getSortKeyLabelKey(key: SortKey): string { class="text-sm font-mono text-fg-muted" > {{ - $t('filters.count.showing_paginated', { - pageSize: pageSize === 'all' ? filteredCount : pageSize, - count: filteredCount.toLocaleString(), - }) + $t( + 'filters.count.showing_paginated', + { + pageSize: pageSize === 'all' ? $n(filteredCount) : pageSize, + count: $n(filteredCount), + }, + filteredCount, + ) }} diff --git a/app/components/PaginationControls.vue b/app/components/PaginationControls.vue index a5298975e5..5da7667c6a 100644 --- a/app/components/PaginationControls.vue +++ b/app/components/PaginationControls.vue @@ -181,7 +181,7 @@ function handlePageSizeChange(event: Event) { $t('filters.pagination.showing', { start: startItem, end: endItem, - total: totalItems.toLocaleString(), + total: $n(totalItems), }) }} diff --git a/app/pages/search.vue b/app/pages/search.vue index c84816bdb6..f6feebf6b9 100644 --- a/app/pages/search.vue +++ b/app/pages/search.vue @@ -680,10 +680,15 @@ defineOgImageComponent('Default', { class="text-fg-muted text-sm mt-4 font-mono" > {{ - $t('filters.count.showing_paginated', { - pageSize: preferredPageSize === 'all' ? visibleResults.total : preferredPageSize, - count: visibleResults.total.toLocaleString(), - }) + $t( + 'filters.count.showing_paginated', + { + pageSize: + preferredPageSize === 'all' ? $n(visibleResults.total) : preferredPageSize, + count: $n(visibleResults.total), + }, + visibleResults.total, + ) }}

diff --git a/i18n/locales/ar.json b/i18n/locales/ar.json index f99e4125b2..6e4aacac99 100644 --- a/i18n/locales/ar.json +++ b/i18n/locales/ar.json @@ -642,9 +642,9 @@ "nav_label": "التصفح" }, "count": { - "showing_filtered": "{filtered} من {total} حزمة", - "showing_all": "{total} حزمة | حزمة واحدة | حزمتان | {total} حزم | {total} حزمة | {total} حزمة", - "showing_paginated": "{pageSize} من {total} حزمة" + "showing_filtered": "{filtered} من {count} حزمة", + "showing_all": "{count} حزمة | حزمة واحدة | حزمتان | {count} حزم | {count} حزمة | {count} حزمة", + "showing_paginated": "{pageSize} من {count} حزمة" }, "table": { "security_warning": "تحذير أمني", diff --git a/i18n/locales/az.json b/i18n/locales/az.json index 12cdd77423..5617767de8 100644 --- a/i18n/locales/az.json +++ b/i18n/locales/az.json @@ -661,9 +661,9 @@ "nav_label": "Səhifələmə" }, "count": { - "showing_filtered": "{total} paketdən {filtered}", - "showing_all": "{total} paket", - "showing_paginated": "{total} paketdən {pageSize}" + "showing_filtered": "{count} paketdən {filtered}", + "showing_all": "{count} paket", + "showing_paginated": "{count} paketdən {pageSize}" }, "table": { "security_warning": "Təhlükəsizlik xəbərdarlığı", diff --git a/i18n/locales/es.json b/i18n/locales/es.json index 366eb6c6f8..3bfb8a1b4d 100644 --- a/i18n/locales/es.json +++ b/i18n/locales/es.json @@ -668,9 +668,9 @@ "nav_label": "Paginación" }, "count": { - "showing_filtered": "{filtered} de {total} paquetes", - "showing_all": "{total} paquetes", - "showing_paginated": "{pageSize} de {total} paquetes" + "showing_filtered": "{filtered} de {count} paquetes", + "showing_all": "{count} paquetes", + "showing_paginated": "{pageSize} de {count} paquetes" }, "table": { "security_warning": "Advertencia de seguridad", diff --git a/i18n/locales/fr-FR.json b/i18n/locales/fr-FR.json index 4ef1a13e39..88406c6958 100644 --- a/i18n/locales/fr-FR.json +++ b/i18n/locales/fr-FR.json @@ -671,9 +671,9 @@ "nav_label": "Pagination" }, "count": { - "showing_filtered": "{filtered} sur {total} paquets", - "showing_all": "{total} paquets", - "showing_paginated": "{pageSize} sur {total} paquets" + "showing_filtered": "{filtered} sur {count} paquets", + "showing_all": "{count} paquets", + "showing_paginated": "{pageSize} sur {count} paquets" }, "table": { "security_warning": "Avertissement de sécurité", diff --git a/i18n/locales/hu-HU.json b/i18n/locales/hu-HU.json index 8915aa3c50..f82d0f4b27 100644 --- a/i18n/locales/hu-HU.json +++ b/i18n/locales/hu-HU.json @@ -659,9 +659,9 @@ "nav_label": "Lapozás" }, "count": { - "showing_filtered": "{filtered} / {total} csomag", - "showing_all": "{total} csomag", - "showing_paginated": "{pageSize} / {total} csomag" + "showing_filtered": "{filtered} / {count} csomag", + "showing_all": "{count} csomag", + "showing_paginated": "{pageSize} / {count} csomag" }, "table": { "security_warning": "Biztonsági figyelmeztetés", diff --git a/i18n/locales/it-IT.json b/i18n/locales/it-IT.json index 3f2cca909c..52102ffe76 100644 --- a/i18n/locales/it-IT.json +++ b/i18n/locales/it-IT.json @@ -636,9 +636,9 @@ "nav_label": "Paginazione" }, "count": { - "showing_filtered": "{filtered} di {total} pacchetti", - "showing_all": "{total} pacchetti", - "showing_paginated": "{pageSize} di {total} pacchetti" + "showing_filtered": "{filtered} di {count} pacchetti", + "showing_all": "{count} pacchetti", + "showing_paginated": "{pageSize} di {count} pacchetti" }, "table": { "security_warning": "Avviso di sicurezza", diff --git a/i18n/locales/pl-PL.json b/i18n/locales/pl-PL.json index f2cd44487f..42aa94a0bc 100644 --- a/i18n/locales/pl-PL.json +++ b/i18n/locales/pl-PL.json @@ -712,9 +712,9 @@ "nav_label": "Paginacja" }, "count": { - "showing_filtered": "{filtered} z {total} pakietów", - "showing_all": "{total} pakietów", - "showing_paginated": "{pageSize} z {total} pakietów" + "showing_filtered": "{filtered} z {count} pakietów", + "showing_all": "{count} pakietów", + "showing_paginated": "{pageSize} z {count} pakietów" }, "table": { "security_warning": "Ostrzeżenie bezpieczeństwa", diff --git a/i18n/locales/ru-RU.json b/i18n/locales/ru-RU.json index f9531a60a2..5ecdd4f898 100644 --- a/i18n/locales/ru-RU.json +++ b/i18n/locales/ru-RU.json @@ -652,9 +652,9 @@ "nav_label": "Пагинация" }, "count": { - "showing_filtered": "{filtered} из {total}", - "showing_all": "{total}", - "showing_paginated": "{pageSize} из {total}" + "showing_filtered": "{filtered} из {count}", + "showing_all": "{count}", + "showing_paginated": "{pageSize} из {count}" }, "table": { "security_warning": "Предупреждение безопасности", diff --git a/i18n/locales/uk-UA.json b/i18n/locales/uk-UA.json index 8518c464e3..0b8f1d6453 100644 --- a/i18n/locales/uk-UA.json +++ b/i18n/locales/uk-UA.json @@ -661,9 +661,9 @@ "nav_label": "Нумерація сторінок" }, "count": { - "showing_filtered": "{filtered} з {total} пакетів", - "showing_all": "{total} пакетів", - "showing_paginated": "{pageSize} з {total} пакетів" + "showing_filtered": "{filtered} з {count} пакетів", + "showing_all": "{count} пакетів", + "showing_paginated": "{pageSize} з {count} пакетів" }, "table": { "security_warning": "Попередження безпеки", diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index f54d95335a..cfb9951998 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -668,9 +668,9 @@ "nav_label": "分页" }, "count": { - "showing_filtered": "匹配 {filtered} 的 {total} 个包", - "showing_all": "{total} 个包", - "showing_paginated": "已显示 {pageSize} 个, 共 {total} 个包" + "showing_filtered": "匹配 {filtered} 的 {count} 个包", + "showing_all": "{count} 个包", + "showing_paginated": "已显示 {pageSize} 个,共 {count} 个包" }, "table": { "no_packages": "安全性警告", diff --git a/lunaria/files/ar-EG.json b/lunaria/files/ar-EG.json index f99e4125b2..6e4aacac99 100644 --- a/lunaria/files/ar-EG.json +++ b/lunaria/files/ar-EG.json @@ -642,9 +642,9 @@ "nav_label": "التصفح" }, "count": { - "showing_filtered": "{filtered} من {total} حزمة", - "showing_all": "{total} حزمة | حزمة واحدة | حزمتان | {total} حزم | {total} حزمة | {total} حزمة", - "showing_paginated": "{pageSize} من {total} حزمة" + "showing_filtered": "{filtered} من {count} حزمة", + "showing_all": "{count} حزمة | حزمة واحدة | حزمتان | {count} حزم | {count} حزمة | {count} حزمة", + "showing_paginated": "{pageSize} من {count} حزمة" }, "table": { "security_warning": "تحذير أمني", diff --git a/lunaria/files/az.json b/lunaria/files/az.json index 12cdd77423..5617767de8 100644 --- a/lunaria/files/az.json +++ b/lunaria/files/az.json @@ -661,9 +661,9 @@ "nav_label": "Səhifələmə" }, "count": { - "showing_filtered": "{total} paketdən {filtered}", - "showing_all": "{total} paket", - "showing_paginated": "{total} paketdən {pageSize}" + "showing_filtered": "{count} paketdən {filtered}", + "showing_all": "{count} paket", + "showing_paginated": "{count} paketdən {pageSize}" }, "table": { "security_warning": "Təhlükəsizlik xəbərdarlığı", diff --git a/lunaria/files/es-419.json b/lunaria/files/es-419.json index 21f158c6e1..57f24f68d1 100644 --- a/lunaria/files/es-419.json +++ b/lunaria/files/es-419.json @@ -157,7 +157,7 @@ "locally": "Ejecutar localmente" }, "readme": { - "title": "Léame", + "title": "Léeme", "no_readme": "No hay README disponible.", "view_on_github": "Ver en GitHub" }, @@ -668,9 +668,9 @@ "nav_label": "Paginación" }, "count": { - "showing_filtered": "{filtered} de {total} paquetes", - "showing_all": "{total} paquetes", - "showing_paginated": "{pageSize} de {total} paquetes" + "showing_filtered": "{filtered} de {count} paquetes", + "showing_all": "{count} paquetes", + "showing_paginated": "{pageSize} de {count} paquetes" }, "table": { "security_warning": "Advertencia de seguridad", diff --git a/lunaria/files/es-ES.json b/lunaria/files/es-ES.json index 366eb6c6f8..3bfb8a1b4d 100644 --- a/lunaria/files/es-ES.json +++ b/lunaria/files/es-ES.json @@ -668,9 +668,9 @@ "nav_label": "Paginación" }, "count": { - "showing_filtered": "{filtered} de {total} paquetes", - "showing_all": "{total} paquetes", - "showing_paginated": "{pageSize} de {total} paquetes" + "showing_filtered": "{filtered} de {count} paquetes", + "showing_all": "{count} paquetes", + "showing_paginated": "{pageSize} de {count} paquetes" }, "table": { "security_warning": "Advertencia de seguridad", diff --git a/lunaria/files/fr-FR.json b/lunaria/files/fr-FR.json index 4ef1a13e39..88406c6958 100644 --- a/lunaria/files/fr-FR.json +++ b/lunaria/files/fr-FR.json @@ -671,9 +671,9 @@ "nav_label": "Pagination" }, "count": { - "showing_filtered": "{filtered} sur {total} paquets", - "showing_all": "{total} paquets", - "showing_paginated": "{pageSize} sur {total} paquets" + "showing_filtered": "{filtered} sur {count} paquets", + "showing_all": "{count} paquets", + "showing_paginated": "{pageSize} sur {count} paquets" }, "table": { "security_warning": "Avertissement de sécurité", diff --git a/lunaria/files/hu-HU.json b/lunaria/files/hu-HU.json index 8915aa3c50..f82d0f4b27 100644 --- a/lunaria/files/hu-HU.json +++ b/lunaria/files/hu-HU.json @@ -659,9 +659,9 @@ "nav_label": "Lapozás" }, "count": { - "showing_filtered": "{filtered} / {total} csomag", - "showing_all": "{total} csomag", - "showing_paginated": "{pageSize} / {total} csomag" + "showing_filtered": "{filtered} / {count} csomag", + "showing_all": "{count} csomag", + "showing_paginated": "{pageSize} / {count} csomag" }, "table": { "security_warning": "Biztonsági figyelmeztetés", diff --git a/lunaria/files/it-IT.json b/lunaria/files/it-IT.json index 3f2cca909c..52102ffe76 100644 --- a/lunaria/files/it-IT.json +++ b/lunaria/files/it-IT.json @@ -636,9 +636,9 @@ "nav_label": "Paginazione" }, "count": { - "showing_filtered": "{filtered} di {total} pacchetti", - "showing_all": "{total} pacchetti", - "showing_paginated": "{pageSize} di {total} pacchetti" + "showing_filtered": "{filtered} di {count} pacchetti", + "showing_all": "{count} pacchetti", + "showing_paginated": "{pageSize} di {count} pacchetti" }, "table": { "security_warning": "Avviso di sicurezza", diff --git a/lunaria/files/pl-PL.json b/lunaria/files/pl-PL.json index f2cd44487f..42aa94a0bc 100644 --- a/lunaria/files/pl-PL.json +++ b/lunaria/files/pl-PL.json @@ -712,9 +712,9 @@ "nav_label": "Paginacja" }, "count": { - "showing_filtered": "{filtered} z {total} pakietów", - "showing_all": "{total} pakietów", - "showing_paginated": "{pageSize} z {total} pakietów" + "showing_filtered": "{filtered} z {count} pakietów", + "showing_all": "{count} pakietów", + "showing_paginated": "{pageSize} z {count} pakietów" }, "table": { "security_warning": "Ostrzeżenie bezpieczeństwa", diff --git a/lunaria/files/ru-RU.json b/lunaria/files/ru-RU.json index f9531a60a2..5ecdd4f898 100644 --- a/lunaria/files/ru-RU.json +++ b/lunaria/files/ru-RU.json @@ -652,9 +652,9 @@ "nav_label": "Пагинация" }, "count": { - "showing_filtered": "{filtered} из {total}", - "showing_all": "{total}", - "showing_paginated": "{pageSize} из {total}" + "showing_filtered": "{filtered} из {count}", + "showing_all": "{count}", + "showing_paginated": "{pageSize} из {count}" }, "table": { "security_warning": "Предупреждение безопасности", diff --git a/lunaria/files/uk-UA.json b/lunaria/files/uk-UA.json index 8518c464e3..0b8f1d6453 100644 --- a/lunaria/files/uk-UA.json +++ b/lunaria/files/uk-UA.json @@ -661,9 +661,9 @@ "nav_label": "Нумерація сторінок" }, "count": { - "showing_filtered": "{filtered} з {total} пакетів", - "showing_all": "{total} пакетів", - "showing_paginated": "{pageSize} з {total} пакетів" + "showing_filtered": "{filtered} з {count} пакетів", + "showing_all": "{count} пакетів", + "showing_paginated": "{pageSize} з {count} пакетів" }, "table": { "security_warning": "Попередження безпеки", diff --git a/lunaria/files/zh-CN.json b/lunaria/files/zh-CN.json index f54d95335a..cfb9951998 100644 --- a/lunaria/files/zh-CN.json +++ b/lunaria/files/zh-CN.json @@ -668,9 +668,9 @@ "nav_label": "分页" }, "count": { - "showing_filtered": "匹配 {filtered} 的 {total} 个包", - "showing_all": "{total} 个包", - "showing_paginated": "已显示 {pageSize} 个, 共 {total} 个包" + "showing_filtered": "匹配 {filtered} 的 {count} 个包", + "showing_all": "{count} 个包", + "showing_paginated": "已显示 {pageSize} 个,共 {count} 个包" }, "table": { "no_packages": "安全性警告", From 621a7b35aa2f771314a59508528e3b1d32295948 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 1 Feb 2026 13:30:09 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- lunaria/files/es-419.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lunaria/files/es-419.json b/lunaria/files/es-419.json index 57f24f68d1..70682c5ced 100644 --- a/lunaria/files/es-419.json +++ b/lunaria/files/es-419.json @@ -157,7 +157,7 @@ "locally": "Ejecutar localmente" }, "readme": { - "title": "Léeme", + "title": "Léame", "no_readme": "No hay README disponible.", "view_on_github": "Ver en GitHub" },