fy.js 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //! moment.js locale configuration
  2. //! locale : Frisian [fy]
  3. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  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 monthsShortWithDots =
  12. 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  13. monthsShortWithoutDots =
  14. 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  15. var fy = moment.defineLocale('fy', {
  16. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
  17. '_'
  18. ),
  19. monthsShort: function (m, format) {
  20. if (!m) {
  21. return monthsShortWithDots;
  22. } else if (/-MMM-/.test(format)) {
  23. return monthsShortWithoutDots[m.month()];
  24. } else {
  25. return monthsShortWithDots[m.month()];
  26. }
  27. },
  28. monthsParseExact: true,
  29. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
  30. '_'
  31. ),
  32. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  33. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  34. weekdaysParseExact: true,
  35. longDateFormat: {
  36. LT: 'HH:mm',
  37. LTS: 'HH:mm:ss',
  38. L: 'DD-MM-YYYY',
  39. LL: 'D MMMM YYYY',
  40. LLL: 'D MMMM YYYY HH:mm',
  41. LLLL: 'dddd D MMMM YYYY HH:mm',
  42. },
  43. calendar: {
  44. sameDay: '[hjoed om] LT',
  45. nextDay: '[moarn om] LT',
  46. nextWeek: 'dddd [om] LT',
  47. lastDay: '[juster om] LT',
  48. lastWeek: '[ôfrûne] dddd [om] LT',
  49. sameElse: 'L',
  50. },
  51. relativeTime: {
  52. future: 'oer %s',
  53. past: '%s lyn',
  54. s: 'in pear sekonden',
  55. ss: '%d sekonden',
  56. m: 'ien minút',
  57. mm: '%d minuten',
  58. h: 'ien oere',
  59. hh: '%d oeren',
  60. d: 'ien dei',
  61. dd: '%d dagen',
  62. M: 'ien moanne',
  63. MM: '%d moannen',
  64. y: 'ien jier',
  65. yy: '%d jierren',
  66. },
  67. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  68. ordinal: function (number) {
  69. return (
  70. number +
  71. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  72. );
  73. },
  74. week: {
  75. dow: 1, // Monday is the first day of the week.
  76. doy: 4, // The week that contains Jan 4th is the first week of the year.
  77. },
  78. });
  79. return fy;
  80. })));