yo.js (1887B)
1//! moment.js locale configuration 2//! locale : Yoruba Nigeria [yo] 3//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe 4 5import moment from '../moment'; 6 7export default moment.defineLocale('yo', { 8 months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split( 9 '_' 10 ), 11 monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), 12 weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), 13 weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), 14 weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), 15 longDateFormat: { 16 LT: 'h:mm A', 17 LTS: 'h:mm:ss A', 18 L: 'DD/MM/YYYY', 19 LL: 'D MMMM YYYY', 20 LLL: 'D MMMM YYYY h:mm A', 21 LLLL: 'dddd, D MMMM YYYY h:mm A', 22 }, 23 calendar: { 24 sameDay: '[Ònì ni] LT', 25 nextDay: '[Ọ̀la ni] LT', 26 nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", 27 lastDay: '[Àna ni] LT', 28 lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', 29 sameElse: 'L', 30 }, 31 relativeTime: { 32 future: 'ní %s', 33 past: '%s kọjá', 34 s: 'ìsẹjú aayá die', 35 ss: 'aayá %d', 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});