react-hook-form-mui icon indicating copy to clipboard operation
react-hook-form-mui copied to clipboard

i18n support

Open szado opened this issue 2 years ago • 1 comments

Duplicates

  • [X] I have searched the existing issues

Latest version

  • [X] I have tested the latest version

Summary 💡

Thanks for this helpful library. It would be great if it was possible to translate the standard error messages for validation rules (required and for email field type). Currently it can be done only with passing own validation config object to all component instances or by overriding all components code.

Examples 🌈

New property for FormContainer which could receive default error messages or other way to declare them would be appreciated.

szado avatar Jul 07 '22 18:07 szado

@szado as not everyone would use FormContainer I'd need to think for a different strategy to support that.

dohomi avatar Jul 08 '22 01:07 dohomi