Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Support multiple languages on Step Indicator #2705

Closed
jaredcunha opened this issue Jan 17, 2024 · 0 comments · Fixed by #2707
Closed

[feat] Support multiple languages on Step Indicator #2705

jaredcunha opened this issue Jan 17, 2024 · 0 comments · Fixed by #2707
Assignees
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

Comments

@jaredcunha
Copy link

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:
Screenshot 2024-01-16 at 7 54 22 PM

@jaredcunha jaredcunha added the type: feature New feature or request label Jan 17, 2024
@werdnanoslen werdnanoslen self-assigned this Jan 17, 2024
@werdnanoslen werdnanoslen added high priority Active blocker for a current project or just urgent i18n Relates to internationalization or localization standards labels Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants