Skip to content

Instantly share code, notes, and snippets.

View francajosejunior's full-sized avatar
😆

Jose Joaquim Junior francajosejunior

😆
  • São Paulo / Brasil
View GitHub Profile
@francajosejunior
francajosejunior / yup.locale.pt-br.js
Created July 6, 2021 18:38 — forked from max10rogerio/yup.locale.pt-br.js
Translation of the main messages from the Yup library into the Pt-Br language.
/* eslint-disable */
// For more infos, see: https://github.com/jquense/yup/blob/master/src/locale.js
import { setLocale } from 'yup'
const translation = {
mixed: {
default: '${path} é inválido',
required: '${path} é um campo obrigatório',
oneOf: '${path} deve ser um dos seguintes valores: ${values}',
notOneOf: '${path} não pode ser um dos seguintes valores: ${values}',