Overview
While our team is preparing to create an i18n system in Codex, we want to avoid using hardcoded English strings in Codex components.
Currently, the Table component has hardcoded English strings for sort directions ("ascending" and "descending"). There is also an aria-label on the sort icon with a hard-coded English string, but this is no longer needed since the icon is aria-hidden and the button has an accessible label, plus aria-sort on the <th> element (see APG for an example)
Acceptance Criteria
- Remove the sort icon label.
- Add a prop for sort direction strings so users can bass in translated text
- Add a note about this prop to the docs