Skip to content

Translate HTML5 required input message#1636

Merged
hursey013 merged 1 commit intomasterfrom
bh-i18n-html5-required
Aug 24, 2017
Merged

Translate HTML5 required input message#1636
hursey013 merged 1 commit intomasterfrom
bh-i18n-html5-required

Conversation

@hursey013
Copy link
Contributor

This provides translated messages for HTML5 form validations. While implementing I noticed some elements of the existing logic was not working working as expected so I did some refactoring to make sure the form validation was being applied to all forms and fields on the page instead of just the first occurrence.

screen shot 2017-08-23 at 5 06 20 pm

screen shot 2017-08-23 at 5 05 54 pm

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

Choose a reason for hiding this comment

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

s seems a little terse to me, what if we called it selector ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed s to events

@hursey013 hursey013 force-pushed the bh-i18n-html5-required branch from 93b4920 to 1ad3e95 Compare August 24, 2017 13:44
@hursey013 hursey013 merged commit 7ea46ed into master Aug 24, 2017
@hursey013 hursey013 deleted the bh-i18n-html5-required branch August 24, 2017 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants