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
5 changes: 3 additions & 2 deletions app/components/PaginationControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const endItem = computed(() => {
return Math.min(currentPage.value * (pageSize.value as number), props.totalItems)
})

const numberFormatter = useNumberFormatter()

const canGoPrev = computed(() => currentPage.value > 1)
const canGoNext = computed(() => currentPage.value < totalPages.value)

Expand Down Expand Up @@ -167,8 +169,7 @@ function handlePageSizeChange(event: Event) {
<span class="text-sm font-mono text-fg-muted">
{{
$t('filters.pagination.showing', {
start: startItem,
end: endItem,
range: numberFormatter.formatRange(startItem, endItem),
total: $n(totalItems),
})
}}
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@
"paginated": "مقسم إلى صفحات",
"items_per_page": "عدد العناصر في الصفحة",
"per_page": "{count} / صفحة",
"showing": "{start}-{end} من {total}",
"showing": "{range} من {total}",
"previous": "الصفحة السابقة",
"next": "الصفحة التالية",
"nav_label": "التصفح"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/az-AZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@
"paginated": "Səhifələnmiş",
"items_per_page": "Səhifə başına element",
"per_page": "{count} / səhifə",
"showing": "{start}-{end} / {total}",
"showing": "{range} / {total}",
"previous": "Əvvəlki səhifə",
"next": "Növbəti səhifə",
"nav_label": "Səhifələmə"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/bg-BG.json
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@
"paginated": "Със страници",
"items_per_page": "Елементи на страница",
"per_page": "{count} / страница",
"showing": "{start}-{end} от {total}",
"showing": "{range} от {total}",
"previous": "Предишна страница",
"next": "Следваща страница",
"nav_label": "Странициране"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/bn-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
"paginated": "পাতায়িত",
"items_per_page": "প্রতি পাতায় আইটেম",
"per_page": "{count} / পাতায়",
"showing": "{total} এর মধ্যে {start}-{end}",
"showing": "{total} এর মধ্যে {range}",
"previous": "আগের পাতা",
"next": "পরের পাতা",
"nav_label": "পাতায়ন"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/cs-CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@
"paginated": "Stránkované",
"items_per_page": "Položek na stránku",
"per_page": "{count} / stránku",
"showing": "{start}-{end} z {total}",
"showing": "{range} z {total}",
"previous": "Předchozí stránka",
"next": "Další stránka",
"nav_label": "Stránkování"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@
"paginated": "Paginiert",
"items_per_page": "Elemente pro Seite",
"per_page": "{count} / Seite",
"showing": "{start}-{end} von {total}",
"showing": "{range} von {total}",
"previous": "Vorherige Seite",
"next": "Nächste Seite",
"nav_label": "Paginierung"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@
"paginated": "Paginated",
"items_per_page": "Items per page",
"per_page": "{count} / page",
"showing": "{start}-{end} of {total}",
"showing": "{range} of {total}",
"previous": "Previous page",
"next": "Next page",
"nav_label": "Pagination"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@
"paginated": "Paginado",
"items_per_page": "Elementos por página",
"per_page": "{count} / página",
"showing": "{start}-{end} de {total}",
"showing": "{range} de {total}",
"previous": "Página anterior",
"next": "Página siguiente",
"nav_label": "Paginación"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@
"paginated": "Paginé",
"items_per_page": "Éléments par page",
"per_page": "{count} / page",
"showing": "{start}-{end} sur {total}",
"showing": "{range} sur {total}",
"previous": "Page précédente",
"next": "Page suivante",
"nav_label": "Pagination"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/hi-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@
"paginated": "पेजिनेटेड",
"items_per_page": "प्रति पृष्ठ आइटम",
"per_page": "{count} / पृष्ठ",
"showing": "{total} में से {start}-{end}",
"showing": "{total} में से {range}",
"previous": "पिछला पृष्ठ",
"next": "अगला पृष्ठ",
"nav_label": "पेजिनेशन"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/hu-HU.json
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@
"paginated": "Lapozható",
"items_per_page": "Elem per oldal",
"per_page": "{count} / oldal",
"showing": "{start}-{end} / {total}",
"showing": "{range} / {total}",
"previous": "Előző oldal",
"next": "Következő oldal",
"nav_label": "Lapozás"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/id-ID.json
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@
"paginated": "Terpaginasi",
"items_per_page": "Item per halaman",
"per_page": "{count} / halaman",
"showing": "{start}-{end} dari {total}",
"showing": "{range} dari {total}",
"previous": "Halaman sebelumnya",
"next": "Halaman berikutnya",
"nav_label": "Paginasi"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@
"paginated": "Paginato",
"items_per_page": "Elementi per pagina",
"per_page": "{count} / pagina",
"showing": "{start}-{end} su {total}",
"showing": "{range} su {total}",
"previous": "Pagina precedente",
"next": "Pagina successiva",
"nav_label": "Paginazione"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@
"paginated": "ページ分割",
"items_per_page": "1ページあたりの項目数",
"per_page": "{count} / ページ",
"showing": "{total} 件中 {start}-{end}",
"showing": "{total} 件中 {range}",
"previous": "前のページ",
"next": "次のページ",
"nav_label": "ページネーション"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/kn-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@
"paginated": "ಪುಟೀಕರಿಸಿದ",
"items_per_page": "ಪ್ರತಿ ಪುಟದ ಅಂಶಗಳು",
"per_page": "{count} / ಪುಟ",
"showing": "{total} ನಲ್ಲಿ {start}-{end}",
"showing": "{total} ನಲ್ಲಿ {range}",
"previous": "ಹಿಂದಿನ ಪುಟ",
"next": "ಮುಂದಿನ ಪುಟ",
"nav_label": "ಪುಟೀಕರಣ"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/nb-NO.json
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@
"paginated": "Sideinndelt",
"items_per_page": "Elementer per side",
"per_page": "{count} / side",
"showing": "{start}-{end} av {total}",
"showing": "{range} av {total}",
"previous": "Forrige side",
"next": "Neste side",
"nav_label": "Sideinndeling"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/ne-NP.json
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@
"paginated": "पृष्ठमा विभाजित",
"items_per_page": "प्रति पृष्ठ वस्तुहरू",
"per_page": "{count} / पृष्ठ",
"showing": "{total} मध्ये {start}-{end}",
"showing": "{total} मध्ये {range}",
"previous": "अघिल्लो पृष्ठ",
"next": "अर्को पृष्ठ",
"nav_label": "पेजिनेशन"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/pl-PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@
"paginated": "Stronicowane",
"items_per_page": "Elementów na stronę",
"per_page": "{count} / stronę",
"showing": "{start}-{end} z {total}",
"showing": "{range} z {total}",
"previous": "Poprzednia strona",
"next": "Następna strona",
"nav_label": "Paginacja"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@
"paginated": "Paginada",
"items_per_page": "Itens por página",
"per_page": "{count} / página",
"showing": "{start}-{end} de {total}",
"showing": "{range} de {total}",
"previous": "Página anterior",
"next": "Próxima página",
"nav_label": "Paginação"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@
"paginated": "Страничный",
"items_per_page": "Элементов на странице",
"per_page": "{count} на странице",
"showing": "{start}-{end} из {total}",
"showing": "{range} из {total}",
"previous": "Предыдущая страница",
"next": "Следующая страница",
"nav_label": "Пагинация"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/ta-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@
"paginated": "பக்கமிடப்பட்ட",
"items_per_page": "ஒரு பக்கத்திற்கான உருப்படிகள்",
"per_page": "{count} / பக்கம்",
"showing": "{start}-{end} / {total}",
"showing": "{range} / {total}",
"previous": "முந்தைய பக்கம்",
"next": "அடுத்த பக்கம்",
"nav_label": "பக்க வழிசெலுத்தல்"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/te-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@
"paginated": "పేజినేటెడ్",
"items_per_page": "పేజీకి అంశాలు",
"per_page": "{count} / పేజీ",
"showing": "{total} లో {start}-{end}",
"showing": "{total} లో {range}",
"previous": "మునుపటి పేజీ",
"next": "తర్వాతి పేజీ",
"nav_label": "పేజినేషన్"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/tr-TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@
"paginated": "Sayfalı",
"items_per_page": "Sayfa başına öğe",
"per_page": "/ sayfa",
"showing": "Gösteriliyor",
"showing": "{range} / {total} gösteriliyor",
"previous": "Önceki",
"next": "Sonraki",
"nav_label": "Sayfalama navigasyonu"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@
"paginated": "По сторінках",
"items_per_page": "Елементів на сторінці",
"per_page": "{count} / сторінка",
"showing": "{start}-{end} з {total}",
"showing": "{range} з {total}",
"previous": "Попередня сторінка",
"next": "Наступна сторінка",
"nav_label": "Посторінково"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@
"paginated": "分页",
"items_per_page": "每页显示",
"per_page": "{count} / 页",
"showing": "第 {start} - {end} 条,共 {total} 条",
"showing": "第 {range} 条,共 {total} 条",
"previous": "上一页",
"next": "下一页",
"nav_label": "分页"
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@
"paginated": "分頁",
"items_per_page": "每頁項目數",
"per_page": "{count} / 頁",
"showing": "顯示第 {start}-{end} 項,共 {total} 項",
"showing": "顯示第 {range} 項,共 {total} 項",
"previous": "上一頁",
"next": "下一頁",
"nav_label": "分頁"
Expand Down
Loading