yo.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //! moment.js locale configuration
  2. //! locale : Yoruba Nigeria [yo]
  3. //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
  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 yo = moment.defineLocale('yo', {
  11. months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
  12. monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  13. weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  14. weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  15. weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  16. longDateFormat : {
  17. LT : 'h:mm A',
  18. LTS : 'h:mm:ss A',
  19. L : 'DD/MM/YYYY',
  20. LL : 'D MMMM YYYY',
  21. LLL : 'D MMMM YYYY h:mm A',
  22. LLLL : 'dddd, D MMMM YYYY h:mm A'
  23. },
  24. calendar : {
  25. sameDay : '[Ònì ni] LT',
  26. nextDay : '[Ọ̀la ni] LT',
  27. nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
  28. lastDay : '[Àna ni] LT',
  29. lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  30. sameElse : 'L'
  31. },
  32. relativeTime : {
  33. future : 'ní %s',
  34. past : '%s kọjá',
  35. s : 'ìsẹjú aayá die',
  36. ss :'aayá %d',
  37. m : 'ìsẹjú kan',
  38. mm : 'ìsẹjú %d',
  39. h : 'wákati kan',
  40. hh : 'wákati %d',
  41. d : 'ọjọ́ kan',
  42. dd : 'ọjọ́ %d',
  43. M : 'osù kan',
  44. MM : 'osù %d',
  45. y : 'ọdún kan',
  46. yy : 'ọdún %d'
  47. },
  48. dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
  49. ordinal : 'ọjọ́ %d',
  50. week : {
  51. dow : 1, // Monday is the first day of the week.
  52. doy : 4 // The week that contains Jan 4th is the first week of the year.
  53. }
  54. });
  55. return yo;
  56. })));