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.

69 lines
2.5 KiB

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