Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions app/components/Package/ListToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,18 @@ function getSortKeyLabelKey(key: SortKey): string {
>
<template v-if="showingFiltered">
{{
$t('filters.count.showing_filtered', {
filtered: filteredCount.toLocaleString(),
count: totalCount.toLocaleString(),
})
$t(
'filters.count.showing_filtered',
{
filtered: $n(filteredCount),
count: $n(totalCount),
},
totalCount,
)
}}
</template>
<template v-else>
{{ $t('filters.count.showing_all', { count: totalCount.toLocaleString() }) }}
{{ $t('filters.count.showing_all', { count: $n(totalCount) }, totalCount) }}
</template>
</div>

Expand All @@ -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,
)
}}
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/components/PaginationControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function handlePageSizeChange(event: Event) {
$t('filters.pagination.showing', {
start: startItem,
end: endItem,
total: totalItems.toLocaleString(),
total: $n(totalItems),
})
}}
</span>
Expand Down
13 changes: 9 additions & 4 deletions app/pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
}}
</p>
</div>
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "تحذير أمني",
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/az.json
Original file line number Diff line number Diff line change
Expand Up @@ -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ığı",
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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é",
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/hu-HU.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/pl-PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "Предупреждение безопасности",
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "Попередження безпеки",
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "安全性警告",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/ar-EG.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "تحذير أمني",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/az.json
Original file line number Diff line number Diff line change
Expand Up @@ -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ığı",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/es-419.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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é",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/hu-HU.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/pl-PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "Предупреждение безопасности",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "Попередження безпеки",
Expand Down
6 changes: 3 additions & 3 deletions lunaria/files/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "安全性警告",
Expand Down