af.js 2.1KB

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