Skip to content

Commit

Permalink
feat(sbb-paginator): initial implementation (#2982)
Browse files Browse the repository at this point in the history
Closes #2756

---------

Co-authored-by: Jeremias Peier <[email protected]>
  • Loading branch information
DavideMininni-Fincons and jeripeierSBB authored Sep 26, 2024
1 parent ad35f2f commit 8306362
Show file tree
Hide file tree
Showing 13 changed files with 2,273 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/elements/core/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,3 +680,38 @@ export const i18nFileSelectorCurrentlySelected = (filesName: string[]): Record<s
it: 'Nessun file selezionato.',
};
};

export const i18nNextPage: Record<string, string> = {
de: 'Nächste Seite',
en: 'Next page',
fr: 'Prochaine page',
it: 'Pagina successiva',
};

export const i18nPreviousPage: Record<string, string> = {
de: 'Vorherige Seite',
en: 'Previous page',
fr: 'Page précédente',
it: 'Pagina precedente',
};

export const i18nPage: Record<string, string> = {
de: 'Seite',
en: 'Page',
fr: 'Page',
it: 'Pagina',
};

export const i18nItemsPerPage: Record<string, string> = {
de: 'Einträge pro Seite',
en: 'Items per page',
fr: 'Entrées par page',
it: 'Elementi per pagina',
};

export const i18nSelectedPage = (pageNumber: number): Record<string, string> => ({
de: `Seite ${pageNumber} ausgewählt.`,
en: `Page ${pageNumber} selected.`,
fr: `Page ${pageNumber} sélectionnée.`,
it: `Pagina ${pageNumber} selezionata.`,
});
1 change: 1 addition & 0 deletions src/elements/paginator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './paginator/paginator.js';
Loading

0 comments on commit 8306362

Please sign in to comment.