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

[8.x] Translate Enum rule message #40089

Merged
merged 1 commit into from
Dec 17, 2021
Merged

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Dec 17, 2021

This implements a translatable message for the Enum validation rule. Previously, it was not possible to translate this message.

This uses a new validation entry added to the skeleton here: laravel/laravel#5753. I specifically fall back to the current behaviour if the entry cannot be found to preserve BC.

See #40080

@driesvints driesvints changed the title Translate Enum rule message [8.x] Translate Enum rule message Dec 17, 2021
@taylorotwell taylorotwell merged commit 00eeab6 into 8.x Dec 17, 2021
@taylorotwell taylorotwell deleted the translate-enum-rule-message branch December 17, 2021 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants