Data Grid Localization · CoreUI Data Grid

Data Grid Localization

Localization

Translate every CoreUI Data Grid UI string through the labels option, with {token} interpolation for dynamic values.

On this page

Every UI string the grid renders — menu items, pagination labels, ARIA announcements — comes from the labels option. Pass your own strings and they’re merged over the defaults, so you only override what you need.

Usage

new coreui.DataGrid(element, {
  columns,
  items,
  labels: {
    globalFilterPlaceholder: 'Szukaj…',
    pageSizeLabel: 'Wierszy na stronę',
    itemsInfo: '{first}–{last} z {total}',
  },
})

Interpolation

Labels with {token} placeholders are interpolated at render time — unknown tokens are left untouched. Available tokens: {column} (column label), {first}, {last}, {total} (pagination range) and {count} (results announcement).

Default labels

The defaults are exported as DEFAULT_LABELS from @coreui/data-grid if you want to extend rather than replace them.