diff --git a/bower.json b/bower.json index b8b64f59..9e395449 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "knockout-validation", - "version": "2.0.3", + "version": "2.0.3.1", "description": "A KnockoutJS Plugin for model and property validation", "main": "dist/knockout.validation.js", "license": "MIT", @@ -17,10 +17,10 @@ "validation", "ko" ], - "homepage": "https://github.com/Knockout-Contrib/Knockout-Validation", + "homepage": "https://github.com/rax-consortio/Knockout-Validation", "repository": { "type": "git", - "url": "git://github.com/Knockout-Contrib/Knockout-Validation.git" + "url": "git://github.com/rax-consortio/Knockout-Validation.git" }, "dependencies": { "knockout": ">=2.3.0" diff --git a/localization/en-SE.js b/localization/en-SE.js new file mode 100644 index 00000000..f1ac1628 --- /dev/null +++ b/localization/en-SE.js @@ -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 { + //