Merge pull request #30143 from mario-mui/feat/table-header-action-i18n
feat: table actions header support i18n
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/core-components': patch
|
||||
---
|
||||
|
||||
table actions header support i18n
|
||||
@@ -13,6 +13,7 @@ export const coreComponentsTranslationRef: TranslationRef<
|
||||
readonly 'table.filter.placeholder': 'All results';
|
||||
readonly 'table.filter.clearAll': 'Clear all';
|
||||
readonly 'table.body.emptyDataSourceMessage': 'No records to display';
|
||||
readonly 'table.header.actions': 'Actions';
|
||||
readonly 'table.toolbar.search': 'Filter';
|
||||
readonly 'table.pagination.firstTooltip': 'First Page';
|
||||
readonly 'table.pagination.labelDisplayedRows': '{from}-{to} of {count}';
|
||||
|
||||
@@ -509,6 +509,10 @@ export function Table<T extends object = {}>(props: TableProps<T>) {
|
||||
previousTooltip: t('table.pagination.previousTooltip'),
|
||||
...localization?.pagination,
|
||||
},
|
||||
header: {
|
||||
actions: t('table.header.actions'),
|
||||
...localization?.header,
|
||||
},
|
||||
toolbar: {
|
||||
searchPlaceholder: t('table.toolbar.search'),
|
||||
searchTooltip: t('table.toolbar.search'),
|
||||
|
||||
@@ -104,6 +104,9 @@ export const coreComponentsTranslationRef = createTranslationRef({
|
||||
toolbar: {
|
||||
search: 'Filter',
|
||||
},
|
||||
header: {
|
||||
actions: 'Actions',
|
||||
},
|
||||
},
|
||||
alertDisplay: {
|
||||
message_one: '({{ count }} newer message)',
|
||||
|
||||
Reference in New Issue
Block a user