ss.js (2572B)
1//! moment.js locale configuration 2//! locale : siSwati [ss] 3//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies 4 5import moment from '../moment'; 6 7export default moment.defineLocale('ss', { 8 months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( 9 '_' 10 ), 11 monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), 12 weekdays: 13 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( 14 '_' 15 ), 16 weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), 17 weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), 18 weekdaysParseExact: true, 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: '[Namuhla nga] LT', 29 nextDay: '[Kusasa nga] LT', 30 nextWeek: 'dddd [nga] LT', 31 lastDay: '[Itolo nga] LT', 32 lastWeek: 'dddd [leliphelile] [nga] LT', 33 sameElse: 'L', 34 }, 35 relativeTime: { 36 future: 'nga %s', 37 past: 'wenteka nga %s', 38 s: 'emizuzwana lomcane', 39 ss: '%d mzuzwana', 40 m: 'umzuzu', 41 mm: '%d emizuzu', 42 h: 'lihora', 43 hh: '%d emahora', 44 d: 'lilanga', 45 dd: '%d emalanga', 46 M: 'inyanga', 47 MM: '%d tinyanga', 48 y: 'umnyaka', 49 yy: '%d iminyaka', 50 }, 51 meridiemParse: /ekuseni|emini|entsambama|ebusuku/, 52 meridiem: function (hours, minutes, isLower) { 53 if (hours < 11) { 54 return 'ekuseni'; 55 } else if (hours < 15) { 56 return 'emini'; 57 } else if (hours < 19) { 58 return 'entsambama'; 59 } else { 60 return 'ebusuku'; 61 } 62 }, 63 meridiemHour: function (hour, meridiem) { 64 if (hour === 12) { 65 hour = 0; 66 } 67 if (meridiem === 'ekuseni') { 68 return hour; 69 } else if (meridiem === 'emini') { 70 return hour >= 11 ? hour : hour + 12; 71 } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { 72 if (hour === 0) { 73 return 0; 74 } 75 return hour + 12; 76 } 77 }, 78 dayOfMonthOrdinalParse: /\d{1,2}/, 79 ordinal: '%d', 80 week: { 81 dow: 1, // Monday is the first day of the week. 82 doy: 4, // The week that contains Jan 4th is the first week of the year. 83 }, 84});