-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable loading of multiple locales and add possibility to switch betw…
…een them The default localization is en-US and it's already included in the library. There's no need to load it explicitly from en-US.js. The following localization files have been renamed because their name was invalid: * no-NB.js → nb-NO.js * ca-CA.js → ca-ES.js Closes #492
- Loading branch information
Showing
37 changed files
with
562 additions
and
913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* Localization file for Catalan - Catalan (ca-ES) | ||
*/ | ||
(function(factory) { | ||
// Module systems magic dance. | ||
/*global require,ko,define*/ | ||
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') { | ||
// CommonJS or Node: hard-coded dependency on 'knockout' | ||
factory(require('knockout')); | ||
} else if (typeof define === "function" && define['amd']) { | ||
// AMD anonymous module with hard-coded dependency on 'knockout' | ||
define(['knockout'], factory); | ||
} else { | ||
// <script> tag: use the global `ko` object | ||
factory(ko); | ||
} | ||
}(function(ko) { | ||
if (!ko.validation || typeof ko.validation.defineLocale !== 'function') { | ||
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file'); | ||
} | ||
return ko.validation.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' | ||
}); | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.