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: add common localization support and ability to specify input pattern validation failure text #5134

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

dlockhart
Copy link
Member

@dlockhart dlockhart commented Nov 5, 2024

This adds common localization support to LocalizeMixin which is useful when listing characters when a text input's pattern validation fails.

@dlockhart dlockhart requested a review from a team as a code owner November 5, 2024 17:55
Copy link
Contributor

github-actions bot commented Nov 5, 2024

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-5134/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

@dlockhart dlockhart changed the title feat: add ability to specify input pattern validation failure text feat: add common localization support and ability to specify input pattern validation failure text Nov 21, 2024

it('should localize "&"', () => {
const localized = elem.localizeCharacter('&');
expect(localized).to.equal('ampersand');
Copy link
Member Author

Choose a reason for hiding this comment

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

Mostly just a smoke test as I didn't want to repeat everything from @brightspace-ui/intl.

@dlockhart dlockhart merged commit 6952327 into main Nov 21, 2024
6 checks passed
@dlockhart dlockhart deleted the GAUD-7169/pattern-failure-text branch November 21, 2024 14:36
Copy link

🎉 This PR is included in version 3.71.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants