479911eea890f50d2a60b5e446059303f9c9ac2ce8fd33d50d5270152239cbb77fc332f93b0efa663704a85cde20a296debfcbac132496cf2a719fa3b52b9c 2.1 KB

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