Ohm-Management - Projektarbeit B-ME
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.

fy.js 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 (!m) {
  11. return monthsShortWithDots;
  12. } else if (/-MMM-/.test(format)) {
  13. return monthsShortWithoutDots[m.month()];
  14. } else {
  15. return monthsShortWithDots[m.month()];
  16. }
  17. },
  18. monthsParseExact : true,
  19. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  20. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  21. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  22. weekdaysParseExact : true,
  23. longDateFormat : {
  24. LT : 'HH:mm',
  25. LTS : 'HH:mm:ss',
  26. L : 'DD-MM-YYYY',
  27. LL : 'D MMMM YYYY',
  28. LLL : 'D MMMM YYYY HH:mm',
  29. LLLL : 'dddd D MMMM YYYY HH:mm'
  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. ss : '%d sekonden',
  44. m : 'ien minút',
  45. mm : '%d minuten',
  46. h : 'ien oere',
  47. hh : '%d oeren',
  48. d : 'ien dei',
  49. dd : '%d dagen',
  50. M : 'ien moanne',
  51. MM : '%d moannen',
  52. y : 'ien jier',
  53. yy : '%d jierren'
  54. },
  55. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  56. ordinal : function (number) {
  57. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  58. },
  59. week : {
  60. dow : 1, // Monday is the first day of the week.
  61. doy : 4 // The week that contains Jan 4th is the first week of the year.
  62. }
  63. });