fy.js 2.2 KB

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