refactor(DataTable): update aria-label and ariaLabel to use indexed placeholder for localization

This commit is contained in:
Marco Beretta
2025-11-12 15:34:02 +01:00
parent 7958401979
commit 4f4e0937f7

View File

@@ -208,12 +208,12 @@ function DataTable<TData extends Record<string, unknown>, TValue>({
className="flex h-full items-center justify-center"
role="button"
tabIndex={0}
aria-label={localize(`com_ui_select_row`, { rowDescription })}
aria-label={localize(`com_ui_select_row`, { 0: rowDescription })}
>
<SelectionCheckbox
checked={row.getIsSelected()}
onChange={(value) => row.toggleSelected(value)}
ariaLabel={localize(`com_ui_select_row`, { rowDescription })}
ariaLabel={localize(`com_ui_select_row`, { 0: rowDescription })}
/>
</div>
);