Node-Red configuration
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.

af.js 2.7KB

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