Node-Red configuration
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.

nn.js 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //! moment.js locale configuration
  2. //! locale : Nynorsk [nn]
  3. //! authors : https://github.com/mechuwind
  4. //! Stephen Ramthun : https://github.com/stephenramthun
  5. import moment from '../moment';
  6. export default moment.defineLocale('nn', {
  7. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  8. '_'
  9. ),
  10. monthsShort:
  11. 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  12. monthsParseExact: true,
  13. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  14. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  15. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  16. weekdaysParseExact: true,
  17. longDateFormat: {
  18. LT: 'HH:mm',
  19. LTS: 'HH:mm:ss',
  20. L: 'DD.MM.YYYY',
  21. LL: 'D. MMMM YYYY',
  22. LLL: 'D. MMMM YYYY [kl.] H:mm',
  23. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  24. },
  25. calendar: {
  26. sameDay: '[I dag klokka] LT',
  27. nextDay: '[I morgon klokka] LT',
  28. nextWeek: 'dddd [klokka] LT',
  29. lastDay: '[I går klokka] LT',
  30. lastWeek: '[Føregåande] dddd [klokka] LT',
  31. sameElse: 'L',
  32. },
  33. relativeTime: {
  34. future: 'om %s',
  35. past: '%s sidan',
  36. s: 'nokre sekund',
  37. ss: '%d sekund',
  38. m: 'eit minutt',
  39. mm: '%d minutt',
  40. h: 'ein time',
  41. hh: '%d timar',
  42. d: 'ein dag',
  43. dd: '%d dagar',
  44. w: 'ei veke',
  45. ww: '%d veker',
  46. M: 'ein månad',
  47. MM: '%d månader',
  48. y: 'eit år',
  49. yy: '%d år',
  50. },
  51. dayOfMonthOrdinalParse: /\d{1,2}\./,
  52. ordinal: '%d.',
  53. week: {
  54. dow: 1, // Monday is the first day of the week.
  55. doy: 4, // The week that contains Jan 4th is the first week of the year.
  56. },
  57. });