Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ajv-i18n

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajv-i18n - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

localize/cz/index.js

4

localize/index.js
'use strict';
module.exports = {
cz: require('./cz'),
de: require('./de'),
en: require('./en'),
es: require('./es'),
hu: require('./hu'),

@@ -11,5 +13,5 @@ it: require('./it'),

ru: require('./ru'),
es: require('./es'),
sk: require('./sk'),
sv: require('./sv'),
zh: require('./zh')
};
{
"name": "ajv-i18n",
"version": "1.3.0",
"version": "1.4.0",
"description": "Internationalised error messages for ajv JSON-Schema validator",

@@ -5,0 +5,0 @@ "main": "localize/index.js",

@@ -12,4 +12,6 @@ # ajv-i18n

|------|:-------:|:---------:|
|🇬🇧 en|English ||
|🇨🇿 cz|Czech |[kiskovacs](https://github.com/kiskovacs)|
|🇩🇪 de|German |[jmtoball](https://github.com/jmtoball)|
|🇬🇧 en|English ||
|🇪🇸 es|Spanish |[jpablom](https://github.com/jpablom)|
|🇭🇺 hu|Hungarian|[szilveszter9](https://github.com/szilveszter9)|

@@ -20,3 +22,3 @@ |🇮🇹 it|Italian |[jasoniangreen](https://github.com/jasoniangreen)|

|🇷🇺 ru|Russian ||
|🇪🇸 es|Spanish |[jpablom](https://github.com/jpablom)|
|🇸🇰 sk|Slovak |[kiskovacs](https://github.com/kiskovacs)|
|🇸🇪 sv|Swedish |[limmen](https://github.com/Limmen)|

@@ -57,6 +59,6 @@ |🇨🇳 zh|Chinese |[jinzhubaofu](https://github.com/jinzhubaofu)|

if (!valid) {
// array of error objects with Russian messages
var errors = localize.ru(validate.errors);
// ru for Russian
localize.ru(validate.errors);
// string with all errors and data paths
console.log(ajv.errorsText(errors, { separator: '\n' }));
console.log(ajv.errorsText(validate.errors, { separator: '\n' }));
}

@@ -63,0 +65,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc