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 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.'
|
|
});
|
|
}));
|