This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
feature: Allow multiple/all locales for isAlpha and IsAlphanumeric decorator #2232
Labels
flag: needs discussion
Issues which needs discussion before implementation.
type: feature
Issues related to new features.
Description
I validate the Name Field using
IsAlpha()
. German users need Umlauts (ä,ö,ü, etc.), so I've set it toIsAlpha("de-DE")
. Now, Spanish users are requesting (ó,ú,á), and tomorrow, Turkish users may request their special characters. I need a solution for this.Proposed Solution
We can consider using an array of locales to allow, for example,
IsAlpha(["de", "es"])
, or a more inclusive approach, such as allowing all locales withIsAlpha("all")
.Question
Is there a better decorator for handling names? What if the name is Arabic or Chinese, and not Latin at all? I'm quite curious.
Related: #266
The text was updated successfully, but these errors were encountered: