github jbetancur/react-data-table-component v8.3.0

3 hours ago

New features

  • Localization — new localization prop on DataTable replaces the three separate option props (columnFilterOptions, expandableRowsOptions, and pagination aria-label fields on paginationComponentOptions). Pass a single object to translate every string and aria-label in the table — filter panel, pagination navigation, and expand/collapse buttons. → Localization docs
  • Built-in locales — import pre-built translations from the react-data-table-component/locales subpath. Ships with: English (en), French (fr), Spanish (es), German (de), Brazilian Portuguese (ptBR), Arabic — Modern Standard (ar), Egyptian (arEG), Levantine (arLV), Hebrew (he), Chinese Simplified (zhCN), Chinese Traditional (zhTW), Japanese (ja), Korean (ko), Ukrainian (uk). Each locale is individually tree-shakeable.
  • New utility exports: emptyFilterState(type) and isFilterActive(filter). → Filtering docs

Deprecations

The following will continue to work in 8.x but will be removed in v9. TypeScript will show a deprecation hint.

  • columnFilterOptions prop — use localization with a filter key instead.
  • expandableRowsOptions prop — use localization with an expandable key instead.
  • Pagination aria-label fields on paginationComponentOptions (navigationAriaLabel, firstPageAriaLabel, previousPageAriaLabel, nextPageAriaLabel, lastPageAriaLabel) — use localization with a pagination key instead.
  • ColumnFilterOptions and ExpandableRowsOptions types — use Localization['filter'] and Localization['expandable'] instead.

Don't miss a new react-data-table-component release

NewReleases is sending notifications on new releases.