Adding global validation messages overrides all default messages #42
Labels
🐛 bug
Verified bug by team
🚀 release-ready
Feature or fix is complete and on an upcoming release branch
Describe the bug
When following the docs at https://docs.formkit.com/essentials/validation under the headline "Global validation message" to add a custom validation message for a built in or custom validation it will override all the default validation messages for the en locale. This is because the
locales.en
object is being fully overridden and is not merging with the defaultui
orvalidation
objects. The current workaround is to import theen
locale and extend when defining custom validation messagesReproduction
<FormKit />
input with required validation.${input.name} is required.
FormKitPlugin
setup include thedefaultFormKitConfig
and define the following object:This field is not valid.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: