Skip to content

aeberdinelli/schemy-translations-spanish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spanish support for Schemy

Ever needed for a spanish json validator to plug quickly into your project? This is a plugin for Schemy

Usage

Install it using npm: npm install --save schemy-translations-spanish, then extend Schemy with it:

const Schemy = require('schemy');
const SchemySpanish = require('schemy-translations-spanish');

Schemy.extend([
	SchemySpanish
]);

// That's it! Just use schemy normally
const schema = new Schemy({
	title: String
});

schema.validate({title: 1});
schema.getValidationErrors(); // => [ 'La propiedad title es de tipo number, se esperaba string' ]

About

Translate Schemy messages to spanish

Resources

Stars

Watchers

Forks

Packages

No packages published