0.7.2 • Published 4 years ago

@validarium/intl v0.7.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Intl

intl

This package provides translator for react-inl messages. Also convenient API for validations.


intl.validateTranslated ⇒ Object

Composed validate with translate. Gives you translated result directly. Params are curried

Returns: Object - Translated result.
Sig: Object -> Object -> Object -> Object

ParamType
intlObject
schemeObject
valuesObject

intl.validateTranslated(intl, ...fns, values) ⇒ Object

combine combineValidate with translate result.

Returns: Object - Translated result.
Sig: (Object, ...Functions) -> Object -> Object

ParamTypeDescription
intlObject
...fnsfunctionValidation functions.
valuesObject

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.

ParamTypeDescription
intlObject
resultObjectto 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.

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.1-0

4 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.3

5 years ago