schemy-translations-spanish

1.1.0 • Public • Published

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' ]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    4
  • 1.0.0
    0

Package Sidebar

Install

npm i schemy-translations-spanish

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

4.28 kB

Total Files

3

Last publish

Collaborators

  • aeberdinelli