Skip to main content

language

To localize and update the messages used in Paginator.js.

  • optional
  • Type: { [key: string]: string | (...args) => string }
  • Example: Locales
new Paginator({
// ...
language: {
pagination: {
previous: 'Previous',
next: 'Next',
ellipsis: '...',
page: (page: number) => `Page ${page}`,
},
loading: 'Loading...',
noRecordsFound: 'No matching records found',
error: 'An error happened while fetching the data',
},
});

tip

See en_US for a full list of messages.