x-pseudo.js (2372B)
1//! moment.js locale configuration 2//! locale : Pseudo [x-pseudo] 3//! author : Andrew Hood : https://github.com/andrewhood125 4 5import moment from '../moment'; 6 7export default moment.defineLocale('x-pseudo', { 8 months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( 9 '_' 10 ), 11 monthsShort: 12 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split( 13 '_' 14 ), 15 monthsParseExact: true, 16 weekdays: 17 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( 18 '_' 19 ), 20 weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), 21 weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), 22 weekdaysParseExact: true, 23 longDateFormat: { 24 LT: 'HH:mm', 25 L: 'DD/MM/YYYY', 26 LL: 'D MMMM YYYY', 27 LLL: 'D MMMM YYYY HH:mm', 28 LLLL: 'dddd, D MMMM YYYY HH:mm', 29 }, 30 calendar: { 31 sameDay: '[T~ódá~ý át] LT', 32 nextDay: '[T~ómó~rró~w át] LT', 33 nextWeek: 'dddd [át] LT', 34 lastDay: '[Ý~ést~érdá~ý át] LT', 35 lastWeek: '[L~ást] dddd [át] LT', 36 sameElse: 'L', 37 }, 38 relativeTime: { 39 future: 'í~ñ %s', 40 past: '%s á~gó', 41 s: 'á ~féw ~sécó~ñds', 42 ss: '%d s~écóñ~ds', 43 m: 'á ~míñ~úté', 44 mm: '%d m~íñú~tés', 45 h: 'á~ñ hó~úr', 46 hh: '%d h~óúrs', 47 d: 'á ~dáý', 48 dd: '%d d~áýs', 49 M: 'á ~móñ~th', 50 MM: '%d m~óñt~hs', 51 y: 'á ~ýéár', 52 yy: '%d ý~éárs', 53 }, 54 dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, 55 ordinal: function (number) { 56 var b = number % 10, 57 output = 58 ~~((number % 100) / 10) === 1 59 ? 'th' 60 : b === 1 61 ? 'st' 62 : b === 2 63 ? 'nd' 64 : b === 3 65 ? 'rd' 66 : 'th'; 67 return number + output; 68 }, 69 week: { 70 dow: 1, // Monday is the first day of the week. 71 doy: 4, // The week that contains Jan 4th is the first week of the year. 72 }, 73});