tzm.js 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. //! moment.js locale configuration
  11. var tzm = moment.defineLocale('tzm', {
  12. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  13. '_'
  14. ),
  15. monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  16. '_'
  17. ),
  18. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  19. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  20. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  21. longDateFormat: {
  22. LT: 'HH:mm',
  23. LTS: 'HH:mm:ss',
  24. L: 'DD/MM/YYYY',
  25. LL: 'D MMMM YYYY',
  26. LLL: 'D MMMM YYYY HH:mm',
  27. LLLL: 'dddd D MMMM YYYY HH:mm',
  28. },
  29. calendar: {
  30. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  31. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  32. nextWeek: 'dddd [ⴴ] LT',
  33. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  34. lastWeek: 'dddd [ⴴ] LT',
  35. sameElse: 'L',
  36. },
  37. relativeTime: {
  38. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  39. past: 'ⵢⴰⵏ %s',
  40. s: 'ⵉⵎⵉⴽ',
  41. ss: '%d ⵉⵎⵉⴽ',
  42. m: 'ⵎⵉⵏⵓⴺ',
  43. mm: '%d ⵎⵉⵏⵓⴺ',
  44. h: 'ⵙⴰⵄⴰ',
  45. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  46. d: 'ⴰⵙⵙ',
  47. dd: '%d oⵙⵙⴰⵏ',
  48. M: 'ⴰⵢoⵓⵔ',
  49. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  50. y: 'ⴰⵙⴳⴰⵙ',
  51. yy: '%d ⵉⵙⴳⴰⵙⵏ',
  52. },
  53. week: {
  54. dow: 6, // Saturday is the first day of the week.
  55. doy: 12, // The week that contains Jan 12th is the first week of the year.
  56. },
  57. });
  58. return tzm;
  59. })));