[feat] Support multiple languages on Step Indicator #2705
Labels
high priority
Active blocker for a current project or just urgent
i18n
Relates to internationalization or localization standards
type: feature
New feature or request
Does your feature request relate to a specific USWDS component?
Step Indicator
What USWDS Version is this feature present in?
Latest
Is your feature request related to a problem? Please describe.
Yes. We have a site that needs to support multiple languages. The Step Indicator has the word "of" hardcoded in the component, so in Spanish, we need the step indicator's current step as "2 de 5" instead of "2 of 5."
Describe the solution you'd like
Perhaps an optional prop to translate the text? Something like
translationForOf
that accepts a string. If not provided, it defaults to "of"Describe alternatives you've considered
N/A
Additional context
Something to support this:
The text was updated successfully, but these errors were encountered: