fy.js 2.8 KB

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