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