es-ES.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Localization file for Spanish - Spain (es-ES)
  3. */
  4. (function(factory) {
  5. // Module systems magic dance.
  6. /*global require,ko.validation,define,module*/
  7. if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
  8. // CommonJS or Node
  9. module.exports = factory(require('../'));
  10. } else if (typeof define === 'function' && define['amd']) {
  11. // AMD anonymous module
  12. define(['knockout.validation'], factory);
  13. } else {
  14. // <script> tag: use the global `ko.validation` object
  15. factory(ko.validation);
  16. }
  17. }(function(kv) {
  18. if (!kv || typeof kv.defineLocale !== 'function') {
  19. throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
  20. }
  21. return kv.defineLocale('es-ES', {
  22. required: 'Este campo es obligatorio',
  23. min: 'Por favor, introduzca un valor igual o mayor a {0}',
  24. max: 'Por favor, introduzca un valor menor o igual a {0}',
  25. minLength: 'Por favor, introduzca al menos {0} caracteres',
  26. maxLength: 'Por favor, no introduzca más de {0} caracteres',
  27. pattern: 'Por favor, compruebe este campo',
  28. step: 'El valor debe incrementarse por {0}',
  29. email: 'Este no es una dirección de email correcta',
  30. date: 'Por favor, introduzca una fecha correcta',
  31. dateISO: 'Por favor, introduzca una fecha correcta',
  32. number: 'Por favor, introduzca un número',
  33. digit: 'Por favor, introduzca un dígito',
  34. phoneUS: 'Por favor, introduzca un número de teléfono válido para EEUU',
  35. equal: 'Los valores deben ser iguales',
  36. notEqual: 'Por favor, elija otro valor',
  37. unique: 'Por favor, asegurese de que el valor sea único'
  38. });
  39. }));