feat(i18n): add tables pagination translations (#620)

This commit is contained in:
Corentin Thomasset
2025-11-09 22:18:09 +01:00
committed by GitHub
parent 868281bcff
commit 1dce0ace41
11 changed files with 25 additions and 8 deletions

View File

@@ -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 }}',
};

View File

@@ -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;

View File

@@ -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 }}',
};

View File

@@ -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 }}',
};

View File

@@ -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 }}',
};

View File

@@ -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 }}',
};

View File

@@ -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 }}',
};

View File

@@ -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 }}',
};

View File

@@ -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 }}',
};

View File

@@ -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 }}',
};

View File

@@ -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>
<Select
value={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