yup-locale-fa
v1.0.1
Published
Persian/Farsi localized messages for yup schema validation library
Downloads
85
Readme
yup-locale-fa
Persian/Farsi locale and translation for yup default messages
Getting Started
$ yarn add yup yup-locale-fa
# or...
$ npm i yup yup-locale-fa
then, set a locale object as yup's default message dictionary with setLocale
function.
import { setLocale } from "yup";
import fa from "yup-locale-fa";
setLocale(fa);
//Or use a flavor or your choice
//for now only descriptive flavor is available
import { descriptive } from "yup-locale-fa";
setLocale(descriptive);
For more info, see yup's README.