he-IL.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Localization file for Hebrew - Israel (he-IL)
  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('he-IL', {
  22. required: 'שדה נדרש',
  23. min: 'אנא הכנס ערך גדול יותר או שווה ל- {0}',
  24. max: 'אנא הכנס ערך קטן יותר או שווה ל- {0}',
  25. minLength: 'אנא הכנס לפחות {0} תווים',
  26. maxLength: 'אנא הכנס לא יותר מאשר {0} תווים',
  27. pattern: 'אנא בדוק את הערך הזה',
  28. step: 'הערך צריך להשתנות ב - {0}',
  29. email: 'אנא הכנס כתובת דוא"ל חוקית',
  30. date: 'אנא הכנס תאריך תקין',
  31. dateISO: 'אנא הכנס תאריך תקין',
  32. number: 'אנא הכנס מספר',
  33. digit: 'אנא הכנס ספרה',
  34. phoneUS: 'אנא הכנס מספר טלפון תקין',
  35. equal: 'ערכים חייבים להיות שווים',
  36. notEqual: 'אנא בחר ערך שונה',
  37. unique: 'אנא וודא שהערך ייחודי'
  38. });
  39. }));