yo.js 2.4 KB

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