0.7.2 • Published 4 years ago
@validarium/intl v0.7.2
Intl
intl
This package provides translator for react-inl messages. Also convenient API for validations.
- intl
- .validateTranslated ⇒ Object
- .validateTranslated(intl, ...fns, values) ⇒ Object
- .translateResult(intl, result) ⇒ Object
intl.validateTranslated ⇒ Object
Composed validate with translate. Gives you translated result directly. Params are curried
Returns: Object - Translated result.
Sig: Object -> Object -> Object -> Object
Param | Type |
---|---|
intl | Object |
scheme | Object |
values | Object |
intl.validateTranslated(intl, ...fns, values) ⇒ Object
combine combineValidate with translate result.
Returns: Object - Translated result.
Sig: (Object, ...Functions) -> Object -> Object
Param | Type | Description |
---|---|---|
intl | Object | |
...fns | function | Validation functions. |
values | Object |
intl.translateResult(intl, result) ⇒ Object
Translate result of validations with react-intl
.
We assume that intl
object is from react-intl
(usually obtained by injectIntl
).
Returns: Object - Translated result.
Param | Type | Description |
---|---|---|
intl | Object | |
result | Object | to translate |
Related projects
- @redux-tools – Maintaining large Redux applications with ease.
- react-union – Integrate React apps into various CMSs seamlessly.
- lundium – Beautiful React component library.
License
All packages are distributed under the MIT license. See the license here.