fy.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //! moment.js locale configuration
  2. ;(function (global, factory) {
  3. typeof exports === 'object' && typeof module !== 'undefined'
  4. && typeof require === 'function' ? factory(require('../moment')) :
  5. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  6. factory(global.moment)
  7. }(this, (function (moment) { 'use strict';
  8. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  9. monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  10. var fy = moment.defineLocale('fy', {
  11. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  12. monthsShort : function (m, format) {
  13. if (!m) {
  14. return monthsShortWithDots;
  15. } else if (/-MMM-/.test(format)) {
  16. return monthsShortWithoutDots[m.month()];
  17. } else {
  18. return monthsShortWithDots[m.month()];
  19. }
  20. },
  21. monthsParseExact : true,
  22. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  23. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  24. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  25. weekdaysParseExact : true,
  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: '[hjoed om] LT',
  36. nextDay: '[moarn om] LT',
  37. nextWeek: 'dddd [om] LT',
  38. lastDay: '[juster om] LT',
  39. lastWeek: '[ôfrûne] dddd [om] LT',
  40. sameElse: 'L'
  41. },
  42. relativeTime : {
  43. future : 'oer %s',
  44. past : '%s lyn',
  45. s : 'in pear sekonden',
  46. ss : '%d sekonden',
  47. m : 'ien minút',
  48. mm : '%d minuten',
  49. h : 'ien oere',
  50. hh : '%d oeren',
  51. d : 'ien dei',
  52. dd : '%d dagen',
  53. M : 'ien moanne',
  54. MM : '%d moannen',
  55. y : 'ien jier',
  56. yy : '%d jierren'
  57. },
  58. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  59. ordinal : function (number) {
  60. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  61. },
  62. week : {
  63. dow : 1, // Monday is the first day of the week.
  64. doy : 4 // The week that contains Jan 4th is the first week of the year.
  65. }
  66. });
  67. return fy;
  68. })));