mirror of
https://github.com/Febbweiss/febbweiss.github.io.git
synced 2026-03-05 06:35:50 +00:00
Fix: add dependencies
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "knockout-validation",
|
||||
"version": "2.0.3",
|
||||
"description": "A KnockoutJS Plugin for model and property validation",
|
||||
"main": "dist/knockout.validation.js",
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"src",
|
||||
"test",
|
||||
"gruntfile.js"
|
||||
],
|
||||
"keywords": [
|
||||
"Knockout-Validation",
|
||||
"knockout",
|
||||
"validation",
|
||||
"ko"
|
||||
],
|
||||
"homepage": "https://github.com/Knockout-Contrib/Knockout-Validation",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Knockout-Contrib/Knockout-Validation.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"knockout": ">=2.3.0"
|
||||
},
|
||||
"_release": "2.0.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "2.0.3",
|
||||
"commit": "e3916b04418ee313f0de06906a342e8609a5d05d"
|
||||
},
|
||||
"_source": "https://github.com/Knockout-Contrib/Knockout-Validation.git",
|
||||
"_target": "~2.0.2",
|
||||
"_originalSource": "knockout-validation"
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
# 2.0.3 (2015-05-18)
|
||||
|
||||
### Features
|
||||
* Add Arabic - Jordan (ar-JO) localization #546
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* formatMessage fails when params is falsy #547
|
||||
* async rules cannot return immediately #341
|
||||
|
||||
|
||||
# 2.0.2 (2015-02-02)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* use `peerDependencies` for npm package dependencies #528
|
||||
* `validationElement` and `validationMessage` bindings throw if observable is not validatable #519
|
||||
* validation cannot be removed from attached observable #526
|
||||
* localization may not work in node.js; some files were still not working with RequireJS #509
|
||||
* Nuget package will contain the same file names as for Bower or NPM
|
||||
|
||||
|
||||
# 2.0.1 (2015-01-26)
|
||||
|
||||
This release enables [cdnjs](https://cdnjs.com/libraries/knockout-validation) npm auto-update and fixes localization loading issue with RequireJS.
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Localization loading randomly breaks when using requirejs #509
|
||||
|
||||
|
||||
### Localization
|
||||
|
||||
* add localization file for Chinese - Taiwan (zh-TW) #513
|
||||
|
||||
|
||||
# 2.0.0 (2015-01-20)
|
||||
|
||||
### Features
|
||||
|
||||
- new localization files: Hebrew, Italian, Persian, Hungarian, Croatian, Brazilian, Japanese, Swedish, Norwegian, Chinese, German, Catalan, Danish, Korean, Latvian, Romanian, Bulgarian, Portuguese, Czech, Turkish #165, #177, #196, #201, #203, #204, #212, #221, #261, #270, #322, #327, #329, #340, #378, #411, #415, #416, #430, #467
|
||||
- add config option `errorsAsTitle` to disable setting element 'title' with error description. Default is `true` #168
|
||||
- add config option `grouping.live` to react to changes to observableArrays #223
|
||||
- add config option `decorateElementOnModified` #320
|
||||
- add config option `allowHtmlMessages` for allowing HTML in validation messages #364
|
||||
- add config option `validate.throttle` to implement throttling for validation #344
|
||||
- add support for HTML5 date, email and number input types #130
|
||||
- decorate radio buttons using checked binding #193
|
||||
- Number validator - Allow numbers starting with point. #236
|
||||
- step rule supports value `any` #271
|
||||
- remove dependency on jQuery #318
|
||||
- update knockout dependency to v3.0.0 #358
|
||||
- add `setRules` method #337
|
||||
- min and max validation use type attribute to determine behavior #355
|
||||
- make library available through npm #357
|
||||
- support observable params for validators #363
|
||||
- min and max rules work with Date observables #459
|
||||
- allow grouping options to be specified to `validatedObservable` #461
|
||||
- add version in banner #428
|
||||
- add support for `textInput` binding #451
|
||||
- add support for `selectedOptions` binding #426
|
||||
- add basic collection methods to errors, exposing raw validatables. #449
|
||||
- ko.validation.group does not resolve deferred computed values unless they have rules defined on them. #163
|
||||
- make localization files AMD and CommonJS/Node compatible #492
|
||||
- enable loading of multiple locales and add possibility to switch between them #492
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- unwrap parameters before using them in `formatMessage` #235
|
||||
- make attached error property to be observable #247, #173
|
||||
- grouping options does not overwrite global configuration options #248
|
||||
- titles are not reset when data becomes valid #170
|
||||
- reorder `phoneUS` validation checks to preserve optional properties if observable is not initialized or null. #234
|
||||
- fix memory leaks in `addAnonymousRule` rules #346
|
||||
- handle rule `params` which may be undefined #334
|
||||
- `unique` rule can behave incorrectly for external values #365
|
||||
- use update binding handler instead of utility method setTextContent #368
|
||||
- `onlyIf` doesn’t affect anonymous validation rule #374
|
||||
- fix group returns observables in errors array, not the value of each error #383
|
||||
- fix initial value for isValid of `validatedObservable` #387
|
||||
- fix check for knockout library #447
|
||||
- make `formatMessage` aware if min and max rules were created from Javascript #385
|
||||
- `writeInputAttributes` fails when anonymous rules are used #400
|
||||
- `maxLength` rule fails if the value (of the observable) is a number #457
|
||||
- `applyBindingsWithValidation` fails when called with viewModel and options #137
|
||||
- `applyBindingsWithValidation` should extend provided config #472
|
||||
- `dateISO` rule accepts months or days outside the valid range #265
|
||||
- `writeInputValidationAttributes` does not support write HTML5 attributes correctly when `params` is observable #481
|
||||
- prevent `ko.validation.group` to notify with intermediary validation state #99
|
||||
- grouping over validatedObservable objects is not possible #494
|
||||
- `showAllMessages` throws when accessing `isModified` when grouping over validatedObservable instances #269
|
||||
- `validatedObservable` does not react when its value changes #442
|
||||
- updating a validatedObservable will not reset initial validation result #209
|
||||
- `parseInputAttributes` option may duplicate rules when enabled #277
|
||||
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
- remove `ko.validation.configure` method, `ko.validation.init` must be used instead #496
|
||||
- rename `decorateElement` to `decorateInputElement` #361
|
||||
- do not change original data by `group` method #465, #225
|
||||
- loading localization files using `script` tags or with and `AMD loader` no longer changes the language automatically. A call to `ko.validation.locale` is required #506
|
||||
- rename some localization files due to invalid identifiers, no-NB.js → nb-NO.js, ca-CA.js → ca-ES.js c2d0ec19bc0abea073a4bbabc933e7299aa6af5b
|
||||
- change project structure #511 - directories are now lowercase
|
||||
@@ -0,0 +1,23 @@
|
||||
#Interested in Contributing?
|
||||
Thanks for your interest! If you have any questions feel free to add an issue to the repo.
|
||||
|
||||
##Join the Knockout.Validation Team
|
||||
Firstly, I am looking for team members! The popularity of Knockout.Validation has become a bit more than I can handle purely in my own sparetime, and so I am looking for folks who want to help fix bugs, add features, and generally keep the Issue list at bay.
|
||||
|
||||
As a team member, you will have priority on determining the direction of Knockout.Validation. You will also get credit on all publicity, articles, references, etc... for Knockout.Validation.
|
||||
|
||||
If you are interested, shoot [Eric](https://github.com/ericmbarnard) a note
|
||||
|
||||
##Found a bug?
|
||||
1. Please give your absolute best attempt to repro the issue with a test (it's really not that hard)
|
||||
2. Fix the bug
|
||||
3. Create PR to either Master, or the next upcoming release branch (eg: if there's both a 'Master' and 'v2.1' branch - create the PR against the 'v2.1' branch)
|
||||
|
||||
##Want to add a feature?
|
||||
1. Attempt to at least start a discussion about the idea before coding it up
|
||||
2. If it seems to get decent feedback, then go ahead and start building something
|
||||
3. Create TESTS! It won't get merged if it doesn't have tests!
|
||||
4. See #3 about creating a PR for the code you have written
|
||||
|
||||
###A Note about Line Endings, etc...
|
||||
- I've added a .gitattribute file to try and force line-endings to be the same across repos. Some folks use Windows, some Mac, some Linux... I don't really care, but try not to screw up the repo formatting when doing PR's. Look at the .gitattributes and make sure you aren't breaking the mold.
|
||||
@@ -0,0 +1,216 @@
|
||||
#Knockout Validation
|
||||
A KnockoutJS Plugin for model and property validation
|
||||
|
||||
[](https://travis-ci.org/Knockout-Contrib/Knockout-Validation)
|
||||
[](http://badge.fury.io/bo/knockout-validation)
|
||||
[](http://badge.fury.io/js/knockout.validation)
|
||||
[](http://badge.fury.io/nu/Knockout.Validation)
|
||||
|
||||
Contributors:
|
||||
|
||||
* [Eric Barnard](https://github.com/ericmbarnard)
|
||||
* [Steve Greatrex](https://github.com/stevegreatrex)
|
||||
* [Andy Booth](https://github.com/andybooth)
|
||||
* [Michal Poreba](https://github.com/michalporeba)
|
||||
* and many others!
|
||||
|
||||
License: [MIT](http://www.opensource.org/licenses/mit-license.php)
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
#### Bower
|
||||
|
||||
```sh
|
||||
bower install knockout-validation --save-dev
|
||||
```
|
||||
|
||||
#### NuGet
|
||||
|
||||
```ps1
|
||||
PM> Install-Package Knockout.Validation
|
||||
```
|
||||
|
||||
#### NPM
|
||||
|
||||
```sh
|
||||
npm install knockout.validation --save
|
||||
```
|
||||
|
||||
#### CDN
|
||||
|
||||
##### [cdnjs](https://cdnjs.com/libraries/knockout-validation)
|
||||
* https://cdnjs.cloudflare.com/ajax/libs/knockout-validation/2.0.3/knockout.validation.js
|
||||
* https://cdnjs.cloudflare.com/ajax/libs/knockout-validation/2.0.3/knockout.validation.min.js
|
||||
|
||||
##### [jsdelivr](http://www.jsdelivr.com/#!knockout.validation)
|
||||
- https://cdn.jsdelivr.net/knockout.validation/2.0.3/knockout.validation.js
|
||||
- https://cdn.jsdelivr.net/knockout.validation/2.0.3/knockout.validation.min.js
|
||||
|
||||
|
||||
##Getting Started
|
||||
```javascript
|
||||
//start using it!
|
||||
var myValue = ko.observable().extend({ required: true });
|
||||
|
||||
//oooh complexity
|
||||
var myComplexValue = ko.observable().extend({
|
||||
required: true,
|
||||
minLength: 3,
|
||||
pattern: {
|
||||
message: 'Hey this doesnt match my pattern',
|
||||
params: '^[A-Z0-9].$'
|
||||
}
|
||||
});
|
||||
|
||||
//or chaining if you like that
|
||||
var myComplexValue = ko.observable()
|
||||
|
||||
myComplexValue.extend({ required: true })
|
||||
.extend({ minLength: 3 })
|
||||
.extend({ pattern: {
|
||||
message: 'Hey this doesnt match my pattern',
|
||||
params: '^[A-Z0-9].$'
|
||||
}});
|
||||
|
||||
//want to know if all of your ViewModel's properties are valid?
|
||||
var myViewModel = ko.validatedObservable({
|
||||
property1: ko.observable().extend({ required: true }),
|
||||
property2: ko.observable().extend({ max: 10 })
|
||||
});
|
||||
|
||||
console.log(myViewModel.isValid()); //false
|
||||
|
||||
myViewModel().property1('something');
|
||||
myViewModel().property2(9);
|
||||
|
||||
console.log(myViewModel.isValid()); //true
|
||||
|
||||
```
|
||||
see more examples on the Fiddle: http://jsfiddle.net/KHFn8/5424/
|
||||
|
||||
##Native Validation Rules
|
||||
**Required**:
|
||||
|
||||
```javascript
|
||||
var myObj = ko.observable('').extend({ required: true });
|
||||
```
|
||||
**Min**:
|
||||
|
||||
```javascript
|
||||
var myObj = ko.observable('').extend({ min: 2 });
|
||||
```
|
||||
**Max**:
|
||||
|
||||
```javascript
|
||||
var myObj = ko.observable('').extend({ max: 99 });
|
||||
```
|
||||
**MinLength**:
|
||||
|
||||
```javascript
|
||||
var myObj = ko.observable('').extend({ minLength: 3 });
|
||||
```
|
||||
**MaxLength**:
|
||||
|
||||
```javascript
|
||||
var myObj = ko.observable('').extend({ maxLength: 12 });
|
||||
```
|
||||
**Email**:
|
||||
|
||||
```javascript
|
||||
var myObj = ko.observable('').extend({ email: true });
|
||||
```
|
||||
|
||||
... and [MANY MORE](https://github.com/Knockout-Contrib/Knockout-Validation/wiki/Native-Rules)
|
||||
|
||||
_Much thanks to the [jQuery Validation Plug-In](https://github.com/jzaefferer/jquery-validation) team for their work on many of the rules_
|
||||
##Custom Validation Rules
|
||||
####Custom Rules
|
||||
Custom Rules can be created using the simple example below. All you need is to define a validator function and a default message.
|
||||
The validator function takes in the observable's value, and the `params` that you pass in with the `extend` method.
|
||||
|
||||
```javascript
|
||||
ko.validation.rules['mustEqual'] = {
|
||||
validator: function (val, otherVal) {
|
||||
return val === otherVal;
|
||||
},
|
||||
message: 'The field must equal {0}'
|
||||
};
|
||||
ko.validation.registerExtenders();
|
||||
|
||||
//the value '5' is the second arg ('otherVal') that is passed to the validator
|
||||
var myCustomObj = ko.observable().extend({ mustEqual: 5 });
|
||||
```
|
||||
Learn more about Custom Rules on the [WIKI](https://github.com/Knockout-Contrib/Knockout-Validation/wiki/Custom-Validation-Rules)
|
||||
|
||||
###Or Check out our [User-Contributed Custom Rules](https://github.com/Knockout-Contrib/Knockout-Validation/wiki/User-Contributed-Rules)!###
|
||||
|
||||
##HTML5 Validation Attributes
|
||||
|
||||
**Required**:
|
||||
|
||||
```html
|
||||
<input type="text" data-bind="value: myProp" required />
|
||||
```
|
||||
|
||||
**Min**:
|
||||
|
||||
```html
|
||||
<input type="number" data-bind="value: myProp" min="2" />
|
||||
<input type="week" data-bind="value:myWeek" min="2012-W03" />
|
||||
<input type="month" data-bind="value:myMonth" min="2012-08" />
|
||||
```
|
||||
|
||||
**Max**:
|
||||
|
||||
```html
|
||||
<input type="number" data-bind="value: myProp" max="99" />
|
||||
<input type="week" data-bind="value:myWeek" max="2010-W15" />
|
||||
<input type="month" data-bind="value:myMonth" min="2012-08" />
|
||||
```
|
||||
|
||||
**Pattern**:
|
||||
|
||||
```html
|
||||
<input type="text" data-bind="value: myProp" pattern="^[a-z0-9].*" />
|
||||
```
|
||||
|
||||
**Step**:
|
||||
|
||||
```html
|
||||
<input type="text" data-bind="value: myProp" step="3" />
|
||||
```
|
||||
**Special Note, the 'MinLength' attribute was removed until the HTML5 spec fully supports it**
|
||||
|
||||
##Knockout Bindings
|
||||
|
||||
###ValidationMessage
|
||||
If you want to customize the display of your objects validation message, use the `validationMessage` binding:
|
||||
|
||||
```html
|
||||
<div>
|
||||
<input type="text" data-bind="value: someValue"/>
|
||||
<p data-bind="validationMessage: someValue"></p>
|
||||
<div>
|
||||
```
|
||||
Check out more on [Validation Bindings](https://github.com/Knockout-Contrib/Knockout-Validation/wiki/Validation-Bindings)
|
||||
|
||||
##Remote Validation Rules
|
||||
Check out our [Async Validation](https://github.com/Knockout-Contrib/Knockout-Validation/wiki/Async-Rules) and [jQuery AJAX Validation](https://github.com/ericmbarnard/Knockout-Validation/wiki/Async-Rules)
|
||||
|
||||
##Localization
|
||||
|
||||
Add a reference to the localization js files after the Knockout Validation plugin
|
||||
|
||||
```html
|
||||
<script type="text/javascript" src="knockout.validation.js"></script>
|
||||
<script type="text/javascript" src="el-GR.js"></script>
|
||||
<script type="text/javascript" src="fr-FR.js"></script>
|
||||
<script type="text/javascript" src="de-DE.js"></script>
|
||||
```
|
||||
|
||||
Apply localized messages
|
||||
|
||||
```js
|
||||
ko.validation.locale('el-GR');
|
||||
```
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "knockout-validation",
|
||||
"version": "2.0.3",
|
||||
"description": "A KnockoutJS Plugin for model and property validation",
|
||||
"main": "dist/knockout.validation.js",
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"src",
|
||||
"test",
|
||||
"gruntfile.js"
|
||||
],
|
||||
"keywords": [
|
||||
"Knockout-Validation",
|
||||
"knockout",
|
||||
"validation",
|
||||
"ko"
|
||||
],
|
||||
"homepage": "https://github.com/Knockout-Contrib/Knockout-Validation",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Knockout-Contrib/Knockout-Validation.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"knockout": ">=2.3.0"
|
||||
}
|
||||
}
|
||||
1511
demo/filebrowser-durandal-widget/lib/knockout-validation/dist/knockout.validation.js
vendored
Normal file
1511
demo/filebrowser-durandal-widget/lib/knockout-validation/dist/knockout.validation.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
11
demo/filebrowser-durandal-widget/lib/knockout-validation/dist/knockout.validation.min.js
vendored
Normal file
11
demo/filebrowser-durandal-widget/lib/knockout-validation/dist/knockout.validation.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
demo/filebrowser-durandal-widget/lib/knockout-validation/dist/knockout.validation.min.js.map
vendored
Normal file
1
demo/filebrowser-durandal-widget/lib/knockout-validation/dist/knockout.validation.min.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Arabic - Jordan (ar-JO)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module with hard-coded dependency on 'knockout.validation'
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('ar-JO', {
|
||||
required: 'مطلوب.',
|
||||
min: 'أدخل قيمة اكبر من {0}.',
|
||||
max: 'أدخل قيمة اقل من {0}.',
|
||||
minLength: 'أدخل {0} احرف أو أكثر.',
|
||||
maxLength: 'أدخل {0} أحرف أو أقل.',
|
||||
pattern: 'قيمة غير صحيحة.',
|
||||
step: 'يجب ان تضاف بمقدار {0}.',
|
||||
email: 'صيغة البريد الالكتروني غير صحيحة.',
|
||||
date: 'صيغة التاريخ غير صحيحة.',
|
||||
dateISO: 'صيغة التاريخ غير صحيحة.',
|
||||
number: 'يرجى إدخال رقم.',
|
||||
digit: 'يرجى إدخال منزلة.',
|
||||
phoneUS: 'صيغة رقم الهاتف غير صحيحة.',
|
||||
equal: 'القيمة غير مساوية.',
|
||||
notEqual: 'يرجى اختيار قيمة اخرى.',
|
||||
unique: 'يرجى التحقق من عدم اختبار قيمة مشابهة.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Bulgarian - Bulgaria (bg-BG)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module with hard-coded dependency on 'knockout.validation'
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('bg-BG', {
|
||||
required: 'Моля, въведете стойност.',
|
||||
min: 'Моля, въведете стойност по-голяма или равна на {0}.',
|
||||
max: 'Моля, въведете стойност по-малка или равна на {0}.',
|
||||
minLength: 'Моля, въведете поне {0} символа.',
|
||||
maxLength: 'Моля, въведете по-малко от {0} символа.',
|
||||
pattern: 'Моля, проверете тази стойност.',
|
||||
step: 'Стойността трябва да се увеличава с {0}.',
|
||||
email: 'Това не е валиден e-mail адрес.',
|
||||
date: 'Моля, въведете валидна дата.',
|
||||
dateISO: 'Моля, въведете валидна дата.',
|
||||
number: 'Моля, въведете число.',
|
||||
digit: 'Моля, въведете цифра.',
|
||||
phoneUS: 'Моля, въведете валиден телефонен номер.',
|
||||
equal: 'Стойностите трябва да са равни.',
|
||||
notEqual: 'Моля, изберете различна стойност.',
|
||||
unique: 'Моля, убедете се, че стойността е уникална.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Catalan - Catalan (ca-ES)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module with hard-coded dependency on 'knockout.validation'
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('ca-ES', {
|
||||
required: 'Aquest camp es obligatori',
|
||||
min: 'Introduir un valor igual o major que {0}',
|
||||
max: 'Introduir un valor menor o igual que {0}',
|
||||
minLength: 'Ha de tenir un mínim de {0} caràcters',
|
||||
maxLength: 'No pot tenir mes de {0} caràcters',
|
||||
pattern: 'Si us plau, comproveu aquest campo',
|
||||
step: "El valor ha d'incrementar-se en {0}",
|
||||
email: 'Aquesta no es una adreça de correu electrònic correcta',
|
||||
date: 'Introduir una data correcta',
|
||||
dateISO: 'Introduir una data correcta',
|
||||
number: 'Ha de ser un nombre',
|
||||
digit: 'Introduir un dígit',
|
||||
phoneUS: 'Ha de ser un número de telèfon vàlid',
|
||||
equal: 'Els valors han de ser iguals',
|
||||
notEqual: 'Elegiu un altre valor',
|
||||
unique: 'Ha de ser un valor únic'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Czech - Czech Republic (cs-CZ)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module with hard-coded dependency on 'knockout.validation'
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('cs-CZ', {
|
||||
required: 'Toto pole je povinné.',
|
||||
min: 'Zadejte číslo větší nebo rovné {0}.',
|
||||
max: 'Zadejte číslo menší nebo rovné {0}.',
|
||||
minLength: 'Vložte alespoň {0} znaků.',
|
||||
maxLength: 'Vložte nejvíce {0} znaků.',
|
||||
pattern: 'Zkontrolujte formát pole.',
|
||||
step: 'Hodnota musí být násobek {0}.',
|
||||
email: 'Neplatná e-mailová adresa.',
|
||||
date: 'Zadejte platné datum.',
|
||||
dateISO: 'Zadejte platné datum.',
|
||||
number: 'Zadejte číslo.',
|
||||
digit: 'Zadejte číslice.',
|
||||
phoneUS: 'Zadejte platné telefonní číslo.',
|
||||
equal: 'Hodnoty musí být stejné.',
|
||||
notEqual: 'Vyberte jinou hodnotu.',
|
||||
unique: 'Zkontrolujte, zda hodnota je jedinečná.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Danish - Denmark (da-DK)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('da-DK', {
|
||||
required: 'Dette felt er påkrævet.',
|
||||
min: 'Angiv en værdi der mindst er {0}.',
|
||||
max: 'Angiv en værdi der højst er {0}.',
|
||||
minLength: 'Indtast mindst {0} tegn.',
|
||||
maxLength: 'Indtast højst {0} tegn.',
|
||||
pattern: 'Tjek venligst denne værdi.',
|
||||
step: 'Værdien skal stige med {0}',
|
||||
email: 'Dette er ikke en gyldig e-mail-adresse',
|
||||
date: 'Indtast en gyldig dato',
|
||||
dateISO: 'Indtast en gyldig dato',
|
||||
number: 'Indtast et tal',
|
||||
digit: 'Indtast et ciffer',
|
||||
phoneUS: 'Indtast et gyldigt telefonnummer',
|
||||
equal: 'Indtast den samme værdi igen.',
|
||||
notEqual: 'Indtast en anden værdi.',
|
||||
unique: 'Sørg for at værdien er unik.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for German - Germany (de-DE)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('de-DE', {
|
||||
required: 'Dieses Feld ist erforderlich.',
|
||||
min: 'Bitte geben Sie einen Wert größer oder gleich {0} ein.',
|
||||
max: 'Bitte geben Sie einen Wert kleiner oder gleich {0} ein.',
|
||||
minLength: 'Bitte geben Sie mindestens {0} Zeichen ein.',
|
||||
maxLength: 'Bitte geben Sie nicht mehr als {0} Zeichen ein.',
|
||||
pattern: 'Bitte überprüfen Sie diesen Wert.',
|
||||
step: 'Der Wert muss um {0} erhöht werden.',
|
||||
email: 'Das ist keine gültige Email-Adresse.',
|
||||
date: 'Bitte geben Sie ein gültiges Datum ein.',
|
||||
dateISO: 'Bitte geben Sie ein gültiges Datum ein.',
|
||||
number: 'Bitte geben Sie eine Zahl ein.',
|
||||
digit: 'Bitte geben Sie eine Ziffer ein.',
|
||||
phoneUS: 'Bitte geben Sie eine gültige Telefonnummer ein.',
|
||||
equal: 'Die Werte müssen übereinstimmen.',
|
||||
notEqual: 'Bitte wählen Sie einen anderen Wert.',
|
||||
unique: 'Bitte stellen Sie sicher, dass der Wert eindeutig ist.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Greek - Greece (el-GR)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('el-GR', {
|
||||
required: 'Το πεδίο αυτό είναι υποχρεωτικό.',
|
||||
min: 'Παρακαλώ εισάγετε μια τιμή μεγαλύτερη ή ίση από {0}.',
|
||||
max: 'Παρακαλώ εισάγετε μια τιμή μικρότερη ή ίση από {0}.',
|
||||
minLength: 'Παρακαλώ εισάγετε τουλάχιστον {0} χαρακτήρες.',
|
||||
maxLength: 'Παρακαλώ εισάγετε το πολύ {0} χαρακτήρες.',
|
||||
pattern: 'Παρακαλώ ελέγξτε την τιμή αυτή.',
|
||||
step: 'Η τιμή πρέπει να αυξηθεί κατά {0}',
|
||||
email: 'Η διεύθυνση email δεν έχει έγκυρη μορφή',
|
||||
date: 'Παρακαλώ εισάγετε μια έγκυρη ημερομηνία',
|
||||
dateISO: 'Παρακαλώ εισάγετε μια έγκυρη ημερομηνία',
|
||||
number: 'Παρακαλώ εισάγετε έναν αριθμό',
|
||||
digit: 'Παρακαλώ εισάγετε ένα ψηφίο',
|
||||
phoneUS: 'Παρακαλώ εισάγετε έναν σωστό αριθμό τηλεφώνου',
|
||||
equal: 'Οι τιμές πρέπει να είναι ίσες',
|
||||
notEqual: 'Παρακαλώ επιλέξτε μια άλλη τιμή.',
|
||||
unique: 'Παρακαλώ βεβαιωθείτε ότι η τιμή είναι μοναδική.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,58 @@
|
||||
/************************************************
|
||||
* This is an example localization page. All of these
|
||||
* messages are the default messages for ko.validation
|
||||
*
|
||||
* Currently ko.validation does multiple parameter replacement
|
||||
* on your message (indicated by the {0}, {1}, etc.).
|
||||
*
|
||||
* The parameters that you provide in your validation extender
|
||||
* are what are passed to your message to do the {0}, {1} etc. replacements.
|
||||
*
|
||||
* eg: myProperty.extend({ minLength: 5 });
|
||||
* ... will provide a message of "Please enter at least 5 characters"
|
||||
* when validated
|
||||
*
|
||||
* eg: myProperty.extend({ between: [1, 5] });
|
||||
* ... will provide a message of "Please enter between 1 and 5 characters"
|
||||
* when validated
|
||||
*
|
||||
* This message replacement obviously only works with primitives
|
||||
* such as numbers and strings. We do not stringify complex objects
|
||||
* or anything like that currently.
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('en-US', {
|
||||
required: 'This field is required.',
|
||||
min: 'Please enter a value greater than or equal to {0}.',
|
||||
max: 'Please enter a value less than or equal to {0}.',
|
||||
minLength: 'Please enter at least {0} characters.',
|
||||
maxLength: 'Please enter no more than {0} characters.',
|
||||
pattern: 'Please check this value.',
|
||||
step: 'The value must increment by {0}.',
|
||||
email: 'Please enter a proper email address.',
|
||||
date: 'Please enter a proper date.',
|
||||
dateISO: 'Please enter a proper date.',
|
||||
number: 'Please enter a number.',
|
||||
digit: 'Please enter a digit.',
|
||||
phoneUS: 'Please specify a valid phone number.',
|
||||
equal: 'Values must equal.',
|
||||
notEqual: 'Please choose another value.',
|
||||
unique: 'Please make sure the value is unique.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Spanish - Spain (es-ES)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('es-ES', {
|
||||
required: 'Este campo es obligatorio',
|
||||
min: 'Por favor, introduzca un valor igual o mayor a {0}',
|
||||
max: 'Por favor, introduzca un valor menor o igual a {0}',
|
||||
minLength: 'Por favor, introduzca al menos {0} caracteres',
|
||||
maxLength: 'Por favor, no introduzca más de {0} caracteres',
|
||||
pattern: 'Por favor, compruebe este campo',
|
||||
step: 'El valor debe incrementarse por {0}',
|
||||
email: 'Este no es una dirección de email correcta',
|
||||
date: 'Por favor, introduzca una fecha correcta',
|
||||
dateISO: 'Por favor, introduzca una fecha correcta',
|
||||
number: 'Por favor, introduzca un número',
|
||||
digit: 'Por favor, introduzca un dígito',
|
||||
phoneUS: 'Por favor, introduzca un número de teléfono válido para EEUU',
|
||||
equal: 'Los valores deben ser iguales',
|
||||
notEqual: 'Por favor, elija otro valor',
|
||||
unique: 'Por favor, asegurese de que el valor sea único'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Farsi - Iran (fa-IR)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('fa-IR', {
|
||||
required: 'تکمیل این فیلد اجباری است.',
|
||||
min: 'لطفاً مقداری بزرگتر یا برابر {0} وارد نمائید.',
|
||||
max: 'لطفاً مقداری کوچکتر یا برابر {0} وارد نمائید.',
|
||||
minLength: 'لطفاً حداقل {0} حرف وارد نمائید.',
|
||||
maxLength: 'لطفاً حداکثر {0} حرف وارد نمائید.',
|
||||
pattern: 'لطفاً یک مقدار معتبر وارد نمائید.',
|
||||
step: 'مقدار باید با {0} افزایش پبدا کند.',
|
||||
email: 'لطفاً یک آدرس ایمیل معتبر وارد نمائید.',
|
||||
date: 'لطفاً یک تاریخ معتبر وارد نمائید.',
|
||||
dateISO: 'لطفاً یک تاریخ معتبر وارد نمائید.',
|
||||
number: 'لطفاً یک عدد وارد نمائید.',
|
||||
digit: 'لطفاً یک عدد وارد نمائید.',
|
||||
phoneUS: 'لطفاً یک شماره تماس معتبر وارد نمائید.',
|
||||
equal: 'مقدارها باید برابر باشند.',
|
||||
notEqual: 'لطفاً یک مقدار دیگر وارد نمائید.',
|
||||
unique: 'لطفاً یک مقدار منحصربه فرد وارد نمائید.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for French - France (fr-FR)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('fr-FR', {
|
||||
required: 'Ce champ est obligatoire.',
|
||||
min: 'Veuillez saisir une valeur supérieure ou égale à {0}.',
|
||||
max: 'Veuillez saisir une valeur inférieure ou égale à {0}.',
|
||||
minLength: 'Veuillez saisir au moins {0} caractères.',
|
||||
maxLength: 'Veuillez saisir au plus {0} caractères.',
|
||||
pattern: 'Veuillez corriger ce champ.',
|
||||
step: 'Le pas d\'incrémentation de la valeur doit être de {0}.',
|
||||
email: 'Ceci n\'est pas une adresse électronique valide.',
|
||||
date: 'Veuillez saisir une date valide.',
|
||||
dateISO: 'Veuillez saisir une date (ISO) valide.',
|
||||
number: 'Veuillez saisir un nombre.',
|
||||
digit: 'Veuillez saisir un chiffre.',
|
||||
phoneUS: 'Veuillez saisir un numéro de téléphone valide.',
|
||||
equal: 'Les valeurs doivent être égales.',
|
||||
notEqual: 'Veuillez saisir une autre valeur.',
|
||||
unique: 'Veuillez vérifier que la valeur est unique.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Hebrew - Israel (he-IL)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('he-IL', {
|
||||
required: 'שדה נדרש',
|
||||
min: 'אנא הכנס ערך גדול יותר או שווה ל- {0}',
|
||||
max: 'אנא הכנס ערך קטן יותר או שווה ל- {0}',
|
||||
minLength: 'אנא הכנס לפחות {0} תווים',
|
||||
maxLength: 'אנא הכנס לא יותר מאשר {0} תווים',
|
||||
pattern: 'אנא בדוק את הערך הזה',
|
||||
step: 'הערך צריך להשתנות ב - {0}',
|
||||
email: 'אנא הכנס כתובת דוא"ל חוקית',
|
||||
date: 'אנא הכנס תאריך תקין',
|
||||
dateISO: 'אנא הכנס תאריך תקין',
|
||||
number: 'אנא הכנס מספר',
|
||||
digit: 'אנא הכנס ספרה',
|
||||
phoneUS: 'אנא הכנס מספר טלפון תקין',
|
||||
equal: 'ערכים חייבים להיות שווים',
|
||||
notEqual: 'אנא בחר ערך שונה',
|
||||
unique: 'אנא וודא שהערך ייחודי'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Croatian - Croatia (hr-HR)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('hr-HR', {
|
||||
required: 'Ovo polje je obavezno.',
|
||||
min: 'Unesena vrijednost mora biti jednaka ili veća od {0}.',
|
||||
max: 'Unesena vrijednost mora biti jednaka ili manja od {0}.',
|
||||
minLength: 'Minimalna dužina polja je {0} znakova.',
|
||||
maxLength: 'Maksimalna dužina polja je {0} znakova.',
|
||||
pattern: 'Unesena vrijednost nije ispravnog formata.',
|
||||
step: 'Vrijednost se mora povećavati za {0}.',
|
||||
email: 'Potrebno je unijeti ispravnu e-mail adresu.',
|
||||
date: 'Potrebno je unijeti ispravan datum.',
|
||||
dateISO: 'Potrebno je unijeti ispravan datum.',
|
||||
number: 'Unesena vrijednost mora biti broj.',
|
||||
digit: 'Unesena vrijednost mora biti znamenka.',
|
||||
phoneUS: 'Potrebno je unijeti ispravan broj telefona.',
|
||||
equal: 'Vrijednosti moraju biti jednake.',
|
||||
notEqual: 'Unesite drugu vrijednost.',
|
||||
unique: 'Unesena vrijednost mora biti jedinstvena.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Hungarian - Hungary (hu-HU)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('hu-HU', {
|
||||
required: 'Kötelezõ megadni.',
|
||||
min: 'Nem lehet kisebb, mint {0}.',
|
||||
max: 'Nem lehet nagyobb, mint {0}.',
|
||||
minLength: 'Legalább {0} karaktert adjon meg.',
|
||||
maxLength: 'Legfeljebb {0} karaktert adjon meg.',
|
||||
pattern: 'Kérem ellenõrizze ezt az értéket.',
|
||||
step: 'Az értéknek {0} értékkel kell növekednie.',
|
||||
email: 'A megadott email cím nem érvényes.',
|
||||
date: 'A megadott dátum nem érvényes.',
|
||||
dateISO: 'A megadott dátum nem érvényes.',
|
||||
number: 'Kérem számot adjon meg.',
|
||||
digit: 'Kérem számjegyet adjon meg.',
|
||||
phoneUS: 'Kérem, hogy érvényes telefonszámot adjon meg.',
|
||||
equal: 'Az értékeknek meg kel egyezniük.',
|
||||
notEqual: 'Az értékeknek különbözniük kell.',
|
||||
unique: 'Az értéknek egyedieknek kell lennie.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Italian - Italy (it-IT)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('it-IT', {
|
||||
required: 'Il campo è obbligatorio.',
|
||||
min: 'Inserire un valore superiore od uguale a {0}.',
|
||||
max: 'Inserire un valore inferiore od uguale a {0}.',
|
||||
minLength: 'Inserire almeno {0} caratteri.',
|
||||
maxLength: 'Inserire al massimo {0} caratteri.',
|
||||
pattern: 'Controllare il valore inserito.',
|
||||
step: 'Il valore deve essere incrementato di {0}.',
|
||||
email: 'Indirizzo email non valido.',
|
||||
date: 'Inserire una data valida.',
|
||||
dateISO: 'Inserire una data valida.',
|
||||
number: 'Inserire un valore numerico.',
|
||||
digit: 'Inserire una cifra.',
|
||||
phoneUS: 'Specificare un numero di telefono valido.',
|
||||
equal: 'I valori devono essere uguali.',
|
||||
notEqual: 'Il valore deve essere differente.',
|
||||
unique: 'Il valore deve essere univoco.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Japanese - Japan (ja-JP)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('ja-JP', {
|
||||
required: 'このフィールドは必須入力項目です。',
|
||||
min: '{0}以上の値を入力してください。',
|
||||
max: '{0}以下の値を入力してください。',
|
||||
minLength: '{0}文字以上の文字を入力してください。',
|
||||
maxLength: '{0}文字以下の文字数にしてください。',
|
||||
pattern: '入力値を確認してください。',
|
||||
step: 'この値は{0}で増加します。',
|
||||
email:'適切なe-mailアドレスではありません。',
|
||||
date: '適切な日付を入力してください。',
|
||||
dateISO: '適切な日付を入力してください。',
|
||||
number: '数字を入力してください。',
|
||||
digit: '数値を入力してください。',
|
||||
phoneUS: '有効な電話番号を指定してください。',
|
||||
equal: '同一の値にしてください。',
|
||||
notEqual: '他の値を選択してください。',
|
||||
unique: '一意の値であることを確認してください。'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Korean - Korea (ko-KR)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('ko-KR', {
|
||||
required: '필수 입력항목입니다.',
|
||||
min: '{0}보다 큰 값을 입력해 주십시오.',
|
||||
max: '{0}보다 작은 값을 입력해 주십시오.',
|
||||
minLength: '{0}글자 이상으로 입력해 주십시오.',
|
||||
maxLength: '{0}글자 이하로 입력해 주십시오.',
|
||||
pattern: '입력한 값의 형식이 올바르지 않습니다.',
|
||||
step: '이 값은 반드시 {0}씩 증가해야 합니다.',
|
||||
email:'올바른 이메일 주소 형식이 아닙니다.',
|
||||
date: '올바른 날짜 형식이 아닙니다.',
|
||||
dateISO: '올바른 날짜 형식이 아닙니다.',
|
||||
number: '숫자를 입력해 주십시오.',
|
||||
digit: '숫자를 입력해 주십시오.',
|
||||
phoneUS: '올바른 전화번호 형식이 아닙니다.',
|
||||
equal: '같은 값을 입력해 주십시오.',
|
||||
notEqual: '다른 값을 선택해 주십시오.',
|
||||
unique: '고유한 값인지 확인해 주십시오.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Latvian - Latvia (lv-LV)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('lv-LV', {
|
||||
required: 'Lauks ir obligāts.',
|
||||
min: 'Lūdzu, ievadiet vērtību lielāku vai vienādu ar {0}.',
|
||||
max: 'Lūdzu, ievadiet vērtību mazāku vai vienādu par {0}.',
|
||||
minLength: 'Lūdzu, ievadiet vismaz {0} simbolus.',
|
||||
maxLength: 'Lūdzu, ievadiet ne vairāk kā {0} simbolus.',
|
||||
pattern: 'Lūdzu, pārbaudiet norādītās vērtības formātu.',
|
||||
step: 'Norādītām vērtībām jābūt pieaugošām ar soli {0}',
|
||||
email: 'Norādītā e-pasta adrese neatbilst formātam',
|
||||
date: 'Lūdzu, norādiet atbilstošu datuma formātu.',
|
||||
dateISO: 'Lūdzu, norādiet atbilstošu datuma formātu.',
|
||||
number: 'Lūdzu, ievadiet numuru.',
|
||||
digit: 'Lūdzu, ievadiet ciparu.',
|
||||
phoneUS: 'Lūdzu, norādiet formātam atbilstošu telefona numuru.',
|
||||
equal: 'Norādītām vērtībām jābūt vienādām.',
|
||||
notEqual: 'Norādītās vērtības nav vienādas.',
|
||||
unique: 'Vērtībai jābūt unikālai.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Norwegian (Bokmål) - Norway (nb-NO)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('nb-NO', {
|
||||
required: 'Dette feltet er obligatorisk',
|
||||
min: 'Fyll inn en verdi som er større eller lik {0}',
|
||||
max: 'Fyll inn en verdi som er mindre eller lik {0}',
|
||||
minLength: 'Fyll inn minst {0} tegn',
|
||||
maxLength: 'Fyll inn færre enn {0} tegn',
|
||||
pattern: 'Vennligst kontrollér verdien',
|
||||
step: 'Verdien må økes med {0}',
|
||||
email: 'Dette er ikke en korrekt e-postadresse',
|
||||
date: 'Fyll inn en korrekt dato',
|
||||
dateISO: 'Fyll inn en korrekt dato',
|
||||
number: 'Fyll inn ett nummer',
|
||||
digit: 'Fyll inn ett siffer',
|
||||
phoneUS: 'Vennlist spesifiser ett korrekt telefonnummer',
|
||||
equal: 'Verdiene må være like',
|
||||
notEqual: 'Vennligst velg en annen verdi',
|
||||
unique: 'Vennligst sørg for at verdien er unik'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Dutch - Belgium (nl-BE)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('nl-BE', {
|
||||
required: 'Dit veld is verplicht.',
|
||||
min: 'Vul een waarde in groter dan of gelijk aan {0}.',
|
||||
max: 'Vul een waarde in kleiner dan of gelijk aan {0}.',
|
||||
minLength: 'Vul ten minste {0} tekens in.',
|
||||
maxLength: 'Vul ten hoogste {0} tekens in.',
|
||||
pattern: 'Vul een correcte waarde in.',
|
||||
step: 'Vul een waarde in die deelbaar is door {0}.',
|
||||
email: 'Vul een correct e-mailadres in.',
|
||||
date: 'Vul een correcte datum in.',
|
||||
dateISO: 'Vul een correcte datum in.',
|
||||
number: 'Vul een getal in.',
|
||||
digit: 'Vul een cijfer in.',
|
||||
phoneUS: 'Vul een geldig telefoonnummer in.',
|
||||
equal: 'Waarden moeten gelijk zijn.',
|
||||
notEqual: 'Vul een andere waarde in.',
|
||||
unique: 'Vul een unieke waarde in.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Dutch - The Netherlands (nl-NL)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('nl-NL', {
|
||||
required: 'Dit veld is verplicht.',
|
||||
min: 'Vul een waarde in groter of gelijk aan {0}.',
|
||||
max: 'Vul een waarde in kleiner of gelijk aan {0}.',
|
||||
minLength: 'Vul ten minste {0} tekens in.',
|
||||
maxLength: 'Vul ten hoogste {0} tekens in.',
|
||||
pattern: 'Vul een correcte waarde in.',
|
||||
step: 'Vul een waarde in die deelbaar is door {0}.',
|
||||
email: 'Vul een correct e-mailadres in.',
|
||||
date: 'Vul een correcte datum in.',
|
||||
dateISO: 'Vul een correcte datum in.',
|
||||
number: 'Vul een getal in.',
|
||||
digit: 'Vul een cijfer in.',
|
||||
phoneUS: 'Vul een geldig telefoonnummer in.',
|
||||
equal: 'Waarden moeten gelijk zijn.',
|
||||
notEqual: 'Vul een andere waarde in.',
|
||||
unique: 'Vul een unieke waarde in.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Polish - Poland (pl-PL)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('pl-PL', {
|
||||
required: 'To pole jest wymagane.',
|
||||
min: 'Wprowadź liczbę więszką lub równą {0}.',
|
||||
max: 'Wprowadź liczbę mniejszą lub równą {0}.',
|
||||
minLength: 'Wprowadź co najmniej {0} znaków.',
|
||||
maxLength: 'Wprowadź co najwyżej {0} znaków.',
|
||||
pattern: 'Sprawdź to pole.',
|
||||
step: 'Wartość musi być wielokrotnością {0}.',
|
||||
email: 'Wprowadź poprawny adres e-mail.',
|
||||
date: 'Wprowadź poprawną datę.',
|
||||
dateISO: 'Wprowadź poprawną datę.',
|
||||
number: 'Wprowadź liczbę.',
|
||||
digit: 'Wprowadź cyfrę.',
|
||||
phoneUS: 'Wprowadź poprawny numer telefonu.',
|
||||
equal: 'Wartości muszą być równe.',
|
||||
notEqual: 'Wybierz inną wartość.',
|
||||
unique: 'Sprawdź czy wartość jest unikalna.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Portuguese - Brazil (pt-BR)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('pt-BR', {
|
||||
required: 'Este campo é obrigatório.',
|
||||
min: 'Por favor, informe um valor maior ou igual a {0}.',
|
||||
max: 'Por favor, informe um valor menor ou igual a {0}.',
|
||||
minLength: 'Por favor, informe ao menos {0} caracteres.',
|
||||
maxLength: 'Por favor, informe no máximo {0} caracteres.',
|
||||
pattern: 'Por favor, verifique este valor',
|
||||
step: 'O valor deve ser incrementado por {0}',
|
||||
email: 'Por favor, informe um e-mail válido.',
|
||||
date: 'Por favor, informe uma data válida.',
|
||||
dateISO: 'Por favor, informe uma data válida (ISO).',
|
||||
number: 'Por favor, informe um número válido.',
|
||||
digit: 'Por favor, utilize somente dígitos.',
|
||||
phoneUS: 'Por favor, informe um telefone válido',
|
||||
equal: 'Os valores devem ser iguais',
|
||||
notEqual: 'Por favor, informe outro valor',
|
||||
unique: 'Verifique se o valor é único'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Portuguese - Portugal (pt-PT)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('pt-PT', {
|
||||
required: 'Este campo é obrigatório.',
|
||||
min: 'Por favor, introduza um valor maior ou igual a {0}.',
|
||||
max: 'Por favor, introduza um valor menor ou igual a {0}.',
|
||||
minLength: 'Por favor, introduza pelo menos {0} caracteres.',
|
||||
maxLength: 'Por favor, introduza no máximo {0} caracteres.',
|
||||
pattern: 'Por favor, verifique este valor',
|
||||
step: 'O valor deve ser incrementado por {0}',
|
||||
email: 'Por favor, introduza um e-mail válido.',
|
||||
date: 'Por favor, introduza uma data válida.',
|
||||
dateISO: 'Por favor, introduza uma data válida (ISO).',
|
||||
number: 'Por favor, introduza um número válido.',
|
||||
digit: 'Por favor, utilize somente dígitos.',
|
||||
phoneUS: 'Por favor, introduza um telefone válido',
|
||||
equal: 'Os valores devem ser iguais',
|
||||
notEqual: 'Por favor, introduza outro valor',
|
||||
unique: 'Verifique se o valor é único'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Romanian - Romania (ro-RO)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('ro-RO', {
|
||||
required: 'Acest câmp este obligatoriu.',
|
||||
min: 'Introduceţi un număr mai mare sau egal cu {0}.',
|
||||
max: 'Introduceţi un număr mai mic sau egal cu {0}.',
|
||||
minLength: 'Introduceţi cel puţin {0} caractere.',
|
||||
maxLength: 'Introduceţi maxim {0} caractere.',
|
||||
pattern: 'Verificaţi această valoare.',
|
||||
step: 'Valoarea trebuie să crească cu {0}.',
|
||||
email: 'Adresa de email nu este validă.',
|
||||
date: 'Vă rugăm introduceţi o dată validă.',
|
||||
dateISO: 'Vă rugăm introduceţi o dată validă.',
|
||||
number: 'Introduceţi un număr.',
|
||||
digit: 'Introduceţi o cifră.',
|
||||
phoneUS: 'Vă rugăm să specificați un număr de telefon valid.',
|
||||
equal: 'Valorile trebuie să fie egale.',
|
||||
notEqual: 'Vă rugăm să alegeți o altă valoare.',
|
||||
unique: 'Vă rugăm să vă asigurați că valoarea este unică.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Russian - Russia (ru-RU)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('ru-RU', {
|
||||
required: 'Пожалуйста, заполните это поле.',
|
||||
min: 'Пожалуйста, введите число большее или равное {0}.',
|
||||
max: 'Пожалуйста, введите число меньшее или равное {0}.',
|
||||
minLength: 'Пожалуйста, введите по крайней мере {0} символов.',
|
||||
maxLength: 'Пожалуйста, введите не больше чем {0} символов.',
|
||||
pattern: 'Пожалуйста, проверьте это поле.',
|
||||
step: 'Значение должно быть кратным {0}',
|
||||
email: 'Пожалуйста, укажите здесь правильный адрес электронной почты',
|
||||
date: 'Пожалуйста, введите правильную дату',
|
||||
dateISO: 'Пожалуйста, введите правильную дату в формате ISO',
|
||||
number: 'Пожалуйста, введите число',
|
||||
digit: 'Пожалуйста, введите цифры',
|
||||
phoneUS: 'Пожалуйста, укажите правильный телефонный номер',
|
||||
equal: 'Значения должны быть равны',
|
||||
notEqual: 'Пожалуйста, выберите другое значение.',
|
||||
unique: 'Пожалуйста, укажите уникальное значение.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Swedish - Sweden (sv-SE)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('sv-SE', {
|
||||
required: 'Detta fält är obligatoriskt',
|
||||
min: 'Fyll i ett värde som är större än eller lika med {0}',
|
||||
max: 'Fyll i ett värde som är mindre än eller lika med {0}',
|
||||
minLength: 'Fyll i minst {0} tecken',
|
||||
maxLength: 'Fyll i färre än {0} tecken',
|
||||
pattern: 'Var god kontrollera värdet',
|
||||
step: 'Värdet måste ökas med {0}',
|
||||
email: 'Fyll i en korrekt e-postadress',
|
||||
date: 'Fyll i ett korrekt datum',
|
||||
dateISO: 'Fyll i ett korrekt datum',
|
||||
number: 'Fyll i ett nummer',
|
||||
digit: 'Fyll i en siffra',
|
||||
phoneUS: 'Fyll i ett korrekt telefonnummer',
|
||||
equal: 'Fyll i samma värde en gång till',
|
||||
notEqual: 'Fyll i ett annat värde',
|
||||
unique: 'Fyll i ett unikt värde'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Turkish - Turkey (tr-TR)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('tr-TR', {
|
||||
required: 'Bu alanın doldurulması zorunludur.',
|
||||
min: 'Lütfen {0} veya daha yüksek değer giriniz.',
|
||||
max: 'Lütfen {0} veya daha düşük değer giriniz.',
|
||||
minLength: 'Lütfen en az {0} karakter giriniz.',
|
||||
maxLength: 'Lütfen en fazla {0} karakter giriniz.',
|
||||
pattern: 'Lütfen bu alanı kontrol ediniz.',
|
||||
step: 'Değer {0} arttırılmalı.',
|
||||
email: 'Bu geçerli bir E-Mail adresi değil.',
|
||||
date: 'Lütfen geçerli bir tarih giriniz.',
|
||||
dateISO: 'Lütfen geçerli bir tarih giriniz.',
|
||||
number: 'Lütfen bir sayı değeri giriniz.',
|
||||
digit: 'Lütfen bir rakam değeri giriniz.',
|
||||
phoneUS: 'Lütfen geçerli bir telefon numarası giriniz.',
|
||||
equal: 'Değerler eşit olmalıdır.',
|
||||
notEqual: 'Lütfen farklı bir değer seçiniz.',
|
||||
unique: 'Lütfen değerin farklı olduğunu kontrol ediniz.'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Chinese - China (zh-CN)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('zh-CN', {
|
||||
required: '必填字段',
|
||||
min: '输入值必须大于等于 {0}',
|
||||
max: '输入值必须小于等于 {0}',
|
||||
minLength: '至少输入 {0} 个字符',
|
||||
maxLength: '输入的字符数不能超过 {0} 个',
|
||||
pattern: '请检查此值',
|
||||
step: '每次步进值是 {0}',
|
||||
email: 'email地址格式不正确',
|
||||
date: '日期格式不正确',
|
||||
dateISO: '日期格式不正确',
|
||||
number: '请输入一个数字',
|
||||
digit: '请输入一个数字',
|
||||
phoneUS: '请输入一个合法的手机号(US)',
|
||||
equal: '输入值不一样',
|
||||
notEqual: '请选择另一个值',
|
||||
unique: '此值应该是唯一的'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Localization file for Chinese - Taiwan (zh-TW)
|
||||
*/
|
||||
(function(factory) {
|
||||
// Module systems magic dance.
|
||||
/*global require,ko.validation,define,module*/
|
||||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS or Node
|
||||
module.exports = factory(require('../'));
|
||||
} else if (typeof define === 'function' && define['amd']) {
|
||||
// AMD anonymous module
|
||||
define(['knockout.validation'], factory);
|
||||
} else {
|
||||
// <script> tag: use the global `ko.validation` object
|
||||
factory(ko.validation);
|
||||
}
|
||||
}(function(kv) {
|
||||
if (!kv || typeof kv.defineLocale !== 'function') {
|
||||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
|
||||
}
|
||||
return kv.defineLocale('zh-TW', {
|
||||
required: '此欄位為必填欄位',
|
||||
min: '輸入值必須大於等於 {0}',
|
||||
max: '輸入值必須小於等於 {0}',
|
||||
minLength: '請至少輸入 {0} 個字元',
|
||||
maxLength: '最大長度為 {0} 個字元',
|
||||
pattern: '請檢查此值',
|
||||
step: '每次遞增值是 {0}',
|
||||
email: 'email格式不正確',
|
||||
date: '日期格式不正確',
|
||||
dateISO: '日期格式不正確',
|
||||
number: '請輸入一組數字',
|
||||
digit: '請輸入一組數字',
|
||||
phoneUS: '請輸入一組有效的電話號碼(US)',
|
||||
equal: '兩次輸入值不相同',
|
||||
notEqual: '請選擇其他數值',
|
||||
unique: '請確認此值為唯一值'
|
||||
});
|
||||
}));
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "knockout.validation",
|
||||
"version": "2.0.3",
|
||||
"description": "A KnockoutJS Plugin for model and property validation",
|
||||
"main": "dist/knockout.validation.js",
|
||||
"files": ["dist", "localization", "CONTRIBUTING.md"],
|
||||
"peerDependencies": {
|
||||
"knockout": ">=2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.5",
|
||||
"grunt-cli": "~0.1.13",
|
||||
"grunt-contrib-jshint": "~0.11.0",
|
||||
"grunt-contrib-uglify": "~0.8.0",
|
||||
"grunt-contrib-concat": "~0.5.1",
|
||||
"grunt-contrib-qunit": "~0.5.2",
|
||||
"grunt-contrib-watch": "~0.6.1",
|
||||
"grunt-clear": "~0.2.1",
|
||||
"jshint-stylish": "~1.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "grunt test"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Knockout-Contrib/Knockout-Validation.git"
|
||||
},
|
||||
"author": "@ericmbarnard",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Knockout-Contrib/Knockout-Validation/issues"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user