Skip to content

Commit 64bf0c3

Browse files
authored
chore(AnalyticalTable): add translations for row expand/collapse announcements (#7244)
1 parent 691ef63 commit 64bf0c3

File tree

1 file changed

+4
-5
lines changed
  • packages/main/src/components/AnalyticalTable

1 file changed

+4
-5
lines changed

packages/main/src/components/AnalyticalTable/index.tsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ import {
4343
INVALID_TABLE,
4444
LIST_NO_DATA,
4545
NO_DATA_FILTERED,
46+
ROW_COLLAPSED,
47+
ROW_EXPANDED,
4648
SELECT_ALL,
4749
SELECT_ALL_PRESS_SPACE,
4850
SELECT_PRESS_SPACE,
@@ -210,11 +212,8 @@ const AnalyticalTable = forwardRef<AnalyticalTableDomRef, AnalyticalTablePropTyp
210212
groupedA11yText: i18nBundle.getText(GROUPED),
211213
selectAllA11yText: i18nBundle.getText(SELECT_ALL_PRESS_SPACE),
212214
deselectAllA11yText: i18nBundle.getText(UNSELECT_ALL_PRESS_SPACE),
213-
//todo: use translations once they are available
214-
// rowExpandedAnnouncementText: i18nBundle.getText(ROW_EXPANDED),
215-
// rowCollapsedAnnouncementText: i18nBundle.getText(ROW_COLLAPSED)
216-
rowExpandedAnnouncementText: 'Row expanded',
217-
rowCollapsedAnnouncementText: 'Row collapsed'
215+
rowExpandedAnnouncementText: i18nBundle.getText(ROW_EXPANDED),
216+
rowCollapsedAnnouncementText: i18nBundle.getText(ROW_COLLAPSED)
218217
},
219218
alternateRowColor,
220219
alwaysShowSubComponent,

0 commit comments

Comments
 (0)