yo.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. m : 'ìsẹjú kan',
  37. mm : 'ìsẹjú %d',
  38. h : 'wákati kan',
  39. hh : 'wákati %d',
  40. d : 'ọjọ́ kan',
  41. dd : 'ọjọ́ %d',
  42. M : 'osù kan',
  43. MM : 'osù %d',
  44. y : 'ọdún kan',
  45. yy : 'ọdún %d'
  46. },
  47. dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
  48. ordinal : 'ọjọ́ %d',
  49. week : {
  50. dow : 1, // Monday is the first day of the week.
  51. doy : 4 // The week that contains Jan 4th is the first week of the year.
  52. }
  53. });
  54. return yo;
  55. })));