You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.6 KiB

  1. //! moment.js locale configuration
  2. //! locale : afrikaans (af)
  3. //! author : Werner Mollentze : https://github.com/wernerm
  4. (function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
  6. typeof define === 'function' && define.amd ? define(['moment'], factory) :
  7. factory(global.moment)
  8. }(this, function (moment) { 'use strict';
  9. var af = moment.defineLocale('af', {
  10. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  11. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  12. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  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 : 'LT:ss',
  29. L : 'DD/MM/YYYY',
  30. LL : 'D MMMM YYYY',
  31. LLL : 'D MMMM YYYY LT',
  32. LLLL : 'dddd, D MMMM YYYY LT'
  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. m : '\'n minuut',
  47. mm : '%d minute',
  48. h : '\'n uur',
  49. hh : '%d ure',
  50. d : '\'n dag',
  51. dd : '%d dae',
  52. M : '\'n maand',
  53. MM : '%d maande',
  54. y : '\'n jaar',
  55. yy : '%d jaar'
  56. },
  57. ordinalParse: /\d{1,2}(ste|de)/,
  58. ordinal : function (number) {
  59. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  60. },
  61. week : {
  62. dow : 1, // Maandag is die eerste dag van die week.
  63. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  64. }
  65. });
  66. return af;
  67. }));