fy.js 2.4 KB

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