tzm.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //! moment.js locale configuration
  2. //! locale : Central Atlas Tamazight [tzm]
  3. //! author : Abdel Said : https://github.com/abdelsaid
  4. ;(function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined'
  6. && typeof require === 'function' ? factory(require('../moment')) :
  7. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  8. factory(global.moment)
  9. }(this, (function (moment) { 'use strict';
  10. var tzm = moment.defineLocale('tzm', {
  11. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  12. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  13. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  14. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  16. longDateFormat : {
  17. LT : 'HH:mm',
  18. LTS: 'HH:mm:ss',
  19. L : 'DD/MM/YYYY',
  20. LL : 'D MMMM YYYY',
  21. LLL : 'D MMMM YYYY HH:mm',
  22. LLLL : 'dddd D MMMM YYYY HH:mm'
  23. },
  24. calendar : {
  25. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  26. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  27. nextWeek: 'dddd [ⴴ] LT',
  28. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  29. lastWeek: 'dddd [ⴴ] LT',
  30. sameElse: 'L'
  31. },
  32. relativeTime : {
  33. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  34. past : 'ⵢⴰⵏ %s',
  35. s : 'ⵉⵎⵉⴽ',
  36. m : 'ⵎⵉⵏⵓⴺ',
  37. mm : '%d ⵎⵉⵏⵓⴺ',
  38. h : 'ⵙⴰⵄⴰ',
  39. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  40. d : 'ⴰⵙⵙ',
  41. dd : '%d oⵙⵙⴰⵏ',
  42. M : 'ⴰⵢoⵓⵔ',
  43. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  44. y : 'ⴰⵙⴳⴰⵙ',
  45. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  46. },
  47. week : {
  48. dow : 6, // Saturday is the first day of the week.
  49. doy : 12 // The week that contains Jan 1st is the first week of the year.
  50. }
  51. });
  52. return tzm;
  53. })));