Comments (3)
Hi! I have my own example of overriding default messages
# app/helper/validators.js
import * as validators from 'redux-form-validators';
import { t } from 'i18next';
export const required = params => validators.required({
message: t('validationMessages:required'),
...params,
});
...
And then you just need to import validators from 'app/helpers/validators'
from redux-form-validators.
@ecirish, @bogdaniy v2.3.0: https://github.com/gtournie/redux-form-validators#default-messages-override
from redux-form-validators.
@gtournie Awesome! Thank you.
from redux-form-validators.
Related Issues (20)
- Pass all the args provided by redux-form to the "if" and unless HOT 1
- Pass all the args provided by redux-form to the "if" and "unless" functions HOT 2
- `prepare` helper converts NaN to 'NaN', so `required` not working for NaN input value HOT 1
- Does redux-form-validators support aync validaiton? HOT 1
- Confirmation validator doesn't work in form-section HOT 2
- Provide memoized `every` and `some` combinators HOT 6
- Cannot start react app after latest changes HOT 2
- Where can I find the version changelog? HOT 5
- redux-form-validators does not work after the initialization of the redux form HOT 2
- allow white space HOT 3
- [Question] Validate only if field is dirty HOT 2
- validateForm with props
- File validator: "no selected files" case HOT 2
- No re-render when locale changes, please add multi-locale example HOT 1
- Can't do sync validation with field arrays? HOT 1
- redux-form: missing peer dependency
- Validator broken
- ValidateForm function error!!!!
- required validator does not detect empty arrays, but empty File Lists
- Troubles with typescript: "^5.3.3",
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-form-validators.