Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese apply #701

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Read the documentation for the default features at [http://formvalidator.net/#de
* **strength** — *Validate the strength of a password*
* **server** — *Validate value of input on server side*
* **letternumeric** — *Validate that the input value consists out of only letters and/or numbers*
* **recaptcha** - *Validate Google [reCaptcha 2](https://www.google.com/recaptcha/intro/index.html)*
* **recaptcha** - *Validate Google [reCaptcha 2](https://www.google.com/recaptcha/intro/index.html)*

Read the documentation for the security module at [http://formvalidator.net/#security-validators](http://formvalidator.net/#security-validators)

Expand Down Expand Up @@ -133,8 +133,8 @@ Read the documentation for the Swedish module at [http://formvalidator.net/#swed

### Module: uk
* **ukvatnumber**
* **uknin**
* **ukutr**
* **uknin**
* **ukutr**

Read the documentation for the UK module at [http://formvalidator.net/#uk-validators](http://www.formvalidator.net/#country-specific-validators_uk)

Expand All @@ -143,12 +143,12 @@ Read the documentation for the UK module at [http://formvalidator.net/#uk-valida
* **cep**
* **cpf**

### Module: poland
### Module: poland
* **plpesel** - *validate polish personal identity number (in Polish identity cards)*
* **plnip** - *validate polish VAT identification number*
* **plregon** - *validate polish bussiness identity number*
### Module: color

### Module: color
* **hex** - *validate hex color format*
* **rgb** - *validate rgb color format*
* **rgba** - *validate rgba color format*
Expand Down Expand Up @@ -265,6 +265,7 @@ You can cause an element to be validated upon the firing of an event, by attachi

This plugin comes with translations for English, Polish,
Romanian,
Chinese,
Danish,
Norwegian,
Dutch,
Expand Down
2 changes: 1 addition & 1 deletion form-validator/brazil.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/color.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/date.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions form-validator/file.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/html5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion form-validator/jquery.form-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/** File generated by Grunt -- do not modify
* JQUERY-FORM-VALIDATOR
*
* @version 2.3.77
* @version 2.3.78
* @website http://formvalidator.net/
* @author Victor Jonsson, http://victorjonsson.se
* @license MIT
Expand Down Expand Up @@ -565,6 +565,10 @@
* * @return {jQuery}
*/
$.fn.validateOnEvent = function (language, config) {
if(this.length === 0) {
return;
}

var $elements = this[0].nodeName === 'FORM' ? this.find('*[data-validation-event]') : this;
$elements
.each(function () {
Expand Down Expand Up @@ -1358,6 +1362,11 @@
*/
validators: {},

/**
* Available sanitizers
*/
sanitizers: {},

/**
* Events triggered by form validator
*/
Expand All @@ -1384,6 +1393,14 @@
this.validators[name] = validator;
},

/**
* Function for adding a sanitizer
* @param {Object} sanitizer
*/
addSanitizer: function (sanitizer) {
this.sanitizers[sanitizer.name] = sanitizer;
},

/**
* Warn user via the console if available
*/
Expand Down
6 changes: 3 additions & 3 deletions form-validator/jquery.form-validator.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion form-validator/jsconf.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** File generated by Grunt -- do not modify
* JQUERY-FORM-VALIDATOR
*
* @version 2.3.77
* @version 2.3.79
* @website http://formvalidator.net/
* @author Victor Jonsson, http://victorjonsson.se
* @license MIT
Expand Down
2 changes: 1 addition & 1 deletion form-validator/lang/ar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/ca.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/cs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/da.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/fa.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/fr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/it.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/ka.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/ko.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/nl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/no.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/pl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/pt.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/ro.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/ru.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/sv.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/tr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion form-validator/lang/vi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading