tzm.js 2.8 KB

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