The minimalistic document archiving platform.
feat(i18n): add tables pagination translations (#620)
Corentin Thomasset1dce0ace41df
diff --git a/apps/papra-client/src/locales/de.dictionary.ts b/apps/papra-client/src/locales/de.dictionary.tsindex d1611358..eacd4bc3 100644--- a/apps/papra-client/src/locales/de.dictionary.ts+++ b/apps/papra-client/src/locales/de.dictionary.ts@@ -715,4 +715,6 @@ export const translations: Partial<TranslationsDictionary> = {// Common / Shared'common.confirm-modal.type-to-confirm': 'Geben Sie "{{ text }}" ein zur Bestätigung',+ 'common.tables.rows-per-page': 'Zeilen pro Seite',+ 'common.tables.pagination-info': 'Seite {{ currentPage }} von {{ totalPages }}',};diff --git a/apps/papra-client/src/locales/en.dictionary.ts b/apps/papra-client/src/locales/en.dictionary.tsindex a5e951b7..1e89755f 100644--- a/apps/papra-client/src/locales/en.dictionary.ts+++ b/apps/papra-client/src/locales/en.dictionary.ts@@ -713,4 +713,6 @@ export const translations = {// Common / Shared'common.confirm-modal.type-to-confirm': 'Type "{{ text }}" to confirm',+ 'common.tables.rows-per-page': 'Rows per page',+ 'common.tables.pagination-info': 'Page {{ currentPage }} of {{ totalPages }}',} as const;diff --git a/apps/papra-client/src/locales/es.dictionary.ts b/apps/papra-client/src/locales/es.dictionary.tsindex 6f01046e..427e21c9 100644--- a/apps/papra-client/src/locales/es.dictionary.ts+++ b/apps/papra-client/src/locales/es.dictionary.ts@@ -715,4 +715,6 @@ export const translations: Partial<TranslationsDictionary> = {// Common / Shared'common.confirm-modal.type-to-confirm': 'Escriba "{{ text }}" para confirmar',+ 'common.tables.rows-per-page': 'Filas por página',+ 'common.tables.pagination-info': 'Página {{ currentPage }} de {{ totalPages }}',};diff --git a/apps/papra-client/src/locales/fr.dictionary.ts b/apps/papra-client/src/locales/fr.dictionary.tsindex 1b9a42dd..ec41e2d2 100644--- a/apps/papra-client/src/locales/fr.dictionary.ts+++ b/apps/papra-client/src/locales/fr.dictionary.ts@@ -715,4 +715,6 @@ export const translations: Partial<TranslationsDictionary> = {// Common / Shared'common.confirm-modal.type-to-confirm': 'Saisissez "{{ text }}" pour confirmer',+ 'common.tables.rows-per-page': 'Lignes par page',+ 'common.tables.pagination-info': 'Page {{ currentPage }} sur {{ totalPages }}',};diff --git a/apps/papra-client/src/locales/it.dictionary.ts b/apps/papra-client/src/locales/it.dictionary.tsindex 0d49d883..6d2282fb 100644--- a/apps/papra-client/src/locales/it.dictionary.ts+++ b/apps/papra-client/src/locales/it.dictionary.ts@@ -715,4 +715,6 @@ export const translations: Partial<TranslationsDictionary> = {// Common / Shared'common.confirm-modal.type-to-confirm': 'Digita "{{ text }}" per confermare',+ 'common.tables.rows-per-page': 'Righe per pagina',+ 'common.tables.pagination-info': 'Pagina {{ currentPage }} di {{ totalPages }}',};diff --git a/apps/papra-client/src/locales/nl.dictionary.ts b/apps/papra-client/src/locales/nl.dictionary.tsindex 95736fcc..871b2e45 100644--- a/apps/papra-client/src/locales/nl.dictionary.ts+++ b/apps/papra-client/src/locales/nl.dictionary.ts@@ -715,4 +715,6 @@ export const translations: Partial<TranslationsDictionary> = {// Common / Shared'common.confirm-modal.type-to-confirm': 'Typ "{{ text }}" om te bevestigen',+ 'common.tables.rows-per-page': 'Rijen per pagina',+ 'common.tables.pagination-info': 'Pagina {{ currentPage }} van {{ totalPages }}',};diff --git a/apps/papra-client/src/locales/pl.dictionary.ts b/apps/papra-client/src/locales/pl.dictionary.tsindex 618194fc..10317070 100644--- a/apps/papra-client/src/locales/pl.dictionary.ts+++ b/apps/papra-client/src/locales/pl.dictionary.ts@@ -715,4 +715,6 @@ export const translations: Partial<TranslationsDictionary> = {// Common / Shared'common.confirm-modal.type-to-confirm': 'Wpisz "{{ text }}", aby potwierdzić',+ 'common.tables.rows-per-page': 'Wierszy na stronę',+ 'common.tables.pagination-info': 'Strona {{ currentPage }} z {{ totalPages }}',};diff --git a/apps/papra-client/src/locales/pt-BR.dictionary.ts b/apps/papra-client/src/locales/pt-BR.dictionary.tsindex fe0c415b..34a2ae22 100644--- a/apps/papra-client/src/locales/pt-BR.dictionary.ts+++ b/apps/papra-client/src/locales/pt-BR.dictionary.ts@@ -715,4 +715,6 @@ export const translations: Partial<TranslationsDictionary> = {// Common / Shared'common.confirm-modal.type-to-confirm': 'Digite "{{ text }}" para confirmar',+ 'common.tables.rows-per-page': 'Linhas por página',+ 'common.tables.pagination-info': 'Página {{ currentPage }} de {{ totalPages }}',};diff --git a/apps/papra-client/src/locales/pt.dictionary.ts b/apps/papra-client/src/locales/pt.dictionary.tsindex 7ed9482b..88228377 100644--- a/apps/papra-client/src/locales/pt.dictionary.ts+++ b/apps/papra-client/src/locales/pt.dictionary.ts@@ -715,4 +715,6 @@ export const translations: Partial<TranslationsDictionary> = {// Common / Shared'common.confirm-modal.type-to-confirm': 'Digite "{{ text }}" para confirmar',+ 'common.tables.rows-per-page': 'Linhas por página',+ 'common.tables.pagination-info': 'Página {{ currentPage }} de {{ totalPages }}',};diff --git a/apps/papra-client/src/locales/ro.dictionary.ts b/apps/papra-client/src/locales/ro.dictionary.tsindex 80bccca0..d0512cfd 100644--- a/apps/papra-client/src/locales/ro.dictionary.ts+++ b/apps/papra-client/src/locales/ro.dictionary.ts@@ -715,4 +715,6 @@ export const translations: Partial<TranslationsDictionary> = {// Common / Shared'common.confirm-modal.type-to-confirm': 'Tastează "{{ text }}" pentru confirmare',+ 'common.tables.rows-per-page': 'Rânduri pe pagină',+ 'common.tables.pagination-info': 'Pagina {{ currentPage }} din {{ totalPages }}',};diff --git a/apps/papra-client/src/modules/documents/components/documents-list.component.tsx b/apps/papra-client/src/modules/documents/components/documents-list.component.tsxindex a8f75fb1..c8a51a9b 100644--- a/apps/papra-client/src/modules/documents/components/documents-list.component.tsx+++ b/apps/papra-client/src/modules/documents/components/documents-list.component.tsx@@ -192,7 +192,7 @@ export const DocumentsPaginatedList: Component<{<div class="flex flex-col-reverse items-center gap-4 sm:flex-row sm:justify-end mt-4"><div class="flex items-center space-x-2"><p class="whitespace-nowrap text-sm font-medium">- Rows per page+ {t('common.tables.rows-per-page')}</p><Selectvalue={table.getState().pagination.pageSize}@@ -213,13 +213,10 @@ export const DocumentsPaginatedList: Component<{</Select></div><div class="flex items-center justify-center whitespace-nowrap text-sm font-medium">- Page- {' '}- {table.getState().pagination.pageIndex + 1}- {' '}- of- {' '}- {table.getPageCount()}+ {t('common.tables.pagination-info', {+ currentPage: table.getState().pagination.pageIndex + 1,+ totalPages: table.getPageCount(),+ })}</div><div class="flex items-center space-x-2"><Button