mirror of
https://github.com/Febbweiss/febbweiss.github.io.git
synced 2026-03-05 14:45:43 +00:00
40 lines
1.5 KiB
JavaScript
40 lines
1.5 KiB
JavaScript
/**
|
|
* 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'
|
|
});
|
|
}));
|