Skip to content

fix(input-date-picker): remove hardcoded strings #10741

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

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Nov 16, 2024

Related Issue: #7708

Summary

This addresses item 2 from #7708.

@jcfranco jcfranco requested a review from benelan as a code owner November 16, 2024 00:58
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Nov 16, 2024
@jcfranco jcfranco marked this pull request as draft November 16, 2024 00:58
@jcfranco jcfranco changed the title fix: remove hardcoded strings fix(input-date-picker): remove hardcoded strings Nov 21, 2024
@jcfranco jcfranco marked this pull request as ready for review November 21, 2024 01:06
@jcfranco jcfranco added the skip visual snapshots Pull requests that do not need visual regression testing. label Nov 21, 2024
@@ -1,4 +1,4 @@
{
"chooseDate": "Choose date",
"dateFormat": "Date Format:"
"dateFormat": "Date Format: {format}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could avoid the {format} literal in messages and do below in JSX. Thoughts?

{messages.dateFormat} {this.localeData?.placeholder)}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need it in the template so translations can position accordingly.

Copy link
Contributor

@anveshmekala anveshmekala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏅

@jcfranco jcfranco merged commit c1d40d2 into dev Nov 21, 2024
17 checks passed
@jcfranco jcfranco deleted the jcfranco/7708-remove-hardcoded-strings branch November 21, 2024 19:02
benelan pushed a commit that referenced this pull request Feb 8, 2025
**Related Issue:** #7708 

## Summary

This addresses item 2 from #7708.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants