af.js (2149B)
1//! moment.js locale configuration 2//! locale : Afrikaans [af] 3//! author : Werner Mollentze : https://github.com/wernerm 4 5import moment from '../moment'; 6 7export default moment.defineLocale('af', { 8 months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( 9 '_' 10 ), 11 monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), 12 weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( 13 '_' 14 ), 15 weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), 16 weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), 17 meridiemParse: /vm|nm/i, 18 isPM: function (input) { 19 return /^nm$/i.test(input); 20 }, 21 meridiem: function (hours, minutes, isLower) { 22 if (hours < 12) { 23 return isLower ? 'vm' : 'VM'; 24 } else { 25 return isLower ? 'nm' : 'NM'; 26 } 27 }, 28 longDateFormat: { 29 LT: 'HH:mm', 30 LTS: 'HH:mm:ss', 31 L: 'DD/MM/YYYY', 32 LL: 'D MMMM YYYY', 33 LLL: 'D MMMM YYYY HH:mm', 34 LLLL: 'dddd, D MMMM YYYY HH:mm', 35 }, 36 calendar: { 37 sameDay: '[Vandag om] LT', 38 nextDay: '[Môre om] LT', 39 nextWeek: 'dddd [om] LT', 40 lastDay: '[Gister om] LT', 41 lastWeek: '[Laas] dddd [om] LT', 42 sameElse: 'L', 43 }, 44 relativeTime: { 45 future: 'oor %s', 46 past: '%s gelede', 47 s: "'n paar sekondes", 48 ss: '%d sekondes', 49 m: "'n minuut", 50 mm: '%d minute', 51 h: "'n uur", 52 hh: '%d ure', 53 d: "'n dag", 54 dd: '%d dae', 55 M: "'n maand", 56 MM: '%d maande', 57 y: "'n jaar", 58 yy: '%d jaar', 59 }, 60 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, 61 ordinal: function (number) { 62 return ( 63 number + 64 (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') 65 ); // Thanks to Joris Röling : https://github.com/jjupiter 66 }, 67 week: { 68 dow: 1, // Maandag is die eerste dag van die week. 69 doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar. 70 }, 71});