react-uswds
react-uswds copied to clipboard
[fix] StepIndicator has hard-coded English status "[not] completed"
ReactUSWDS Version & USWDS Version:
react-uswds v9
Describe the bug
The StepIndicator has English "completed" and "not completed" hard-coded in its sr-only span, preventing i18n
To Reproduce Steps to reproduce the behavior:
- Use screen reader on an otherwise non-English page
- Scan a step indicator with mixed statuses
- Hear English words despite translators' best work
Expected behavior
A new statusText prop to pass in for these words
Additional context #1742