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

KeyDefaultUsed by
addConditionAdd conditionFilter menu
applyFilterApplyFilter menu
clearFilterClear filterFilter menu + quick-input clear
clearSortUnsortColumn menu sort actions
columnMenuColumn options for {column}Column menu button
filterActionFilter…Column menu action
filterColumnFilter {column}Filter input
filterSummaryConditions{count} conditionsQuick-input summary
filterSummarySelected{count} selectedQuick-input summary
firstPageFirst pagePagination
globalFilterLabelSearchGlobal search accessible label
globalFilterPlaceholderSearchGlobal search placeholder
hideColumnHide columnColumn menu
itemsInfo{first}–{last} of {total}Pagination range summary
joinAndANDFilter menu
joinOrORFilter menu
lastPageLast pagePagination
loadErrorFailed to load dataServer-side error state
loadingLoading…Server-side loading overlay
moveLeftMove leftColumn menu
moveRightMove rightColumn menu
nextPageNext pagePagination
operatorBetweenBetweenFilter menu operators
operatorBlankBlankFilter menu operators
operatorContainsContainsFilter menu operators
operatorEndsWithEnds withFilter menu operators
operatorEqualsEqualsFilter menu operators
operatorGreaterThanGreater thanFilter menu operators
operatorGreaterThanOrEqualGreater than or equalFilter menu operators
operatorLessThanLess thanFilter menu operators
operatorLessThanOrEqualLess than or equalFilter menu operators
operatorNotBlankNot blankFilter menu operators
operatorNotContainsDoes not containFilter menu operators
operatorNotEqualsNot equalsFilter menu operators
operatorStartsWithStarts withFilter menu operators
pageSizeLabelRows per pagePagination page-size selector
paginationLabelPaginationPagination nav accessible label
pinLeftPin leftColumn menu
pinRightPin rightColumn menu
previousPagePrevious pagePagination
redoneAnnouncementChange redoneUndo & redo ARIA live announcement
resetColumnsResetToolbar column chooser
resultsAnnouncement{count} resultsARIA live announcement
searchValuesSearch valuesSet filter search box
selectAllRowsSelect all rowsSelection header checkbox
selectAllValuesSelect allSet filter
selectRowSelect rowSelection row checkbox
showAllColumnsShow allToolbar column chooser
sortAscendingSort ascendingColumn menu sort actions
sortDescendingSort descendingColumn menu sort actions
toolbarColumnsColumnsToolbar columns button
toolbarExportExportToolbar export button
toolbarRedoRedoToolbar redo button
toolbarUndoUndoToolbar undo button
undoneAnnouncementChange undoneUndo & redo ARIA live announcement
unpinUnpinColumn menu

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