Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

oc-lnc.js 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. //! moment.js locale configuration
  2. //! locale : Occitan, lengadocian dialecte [oc-lnc]
  3. //! author : Quentin PAGÈS : https://github.com/Quenty31
  4. import moment from '../moment';
  5. export default moment.defineLocale('oc-lnc', {
  6. months: {
  7. standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  8. '_'
  9. ),
  10. format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
  11. '_'
  12. ),
  13. isFormat: /D[oD]?(\s)+MMMM/,
  14. },
  15. monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  16. '_'
  17. ),
  18. monthsParseExact: true,
  19. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  20. '_'
  21. ),
  22. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  23. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  24. weekdaysParseExact: true,
  25. longDateFormat: {
  26. LT: 'H:mm',
  27. LTS: 'H:mm:ss',
  28. L: 'DD/MM/YYYY',
  29. LL: 'D MMMM [de] YYYY',
  30. ll: 'D MMM YYYY',
  31. LLL: 'D MMMM [de] YYYY [a] H:mm',
  32. lll: 'D MMM YYYY, H:mm',
  33. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  34. llll: 'ddd D MMM YYYY, H:mm',
  35. },
  36. calendar: {
  37. sameDay: '[uèi a] LT',
  38. nextDay: '[deman a] LT',
  39. nextWeek: 'dddd [a] LT',
  40. lastDay: '[ièr a] LT',
  41. lastWeek: 'dddd [passat a] LT',
  42. sameElse: 'L',
  43. },
  44. relativeTime: {
  45. future: "d'aquí %s",
  46. past: 'fa %s',
  47. s: 'unas segondas',
  48. ss: '%d segondas',
  49. m: 'una minuta',
  50. mm: '%d minutas',
  51. h: 'una ora',
  52. hh: '%d oras',
  53. d: 'un jorn',
  54. dd: '%d jorns',
  55. M: 'un mes',
  56. MM: '%d meses',
  57. y: 'un an',
  58. yy: '%d ans',
  59. },
  60. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  61. ordinal: function (number, period) {
  62. var output =
  63. number === 1
  64. ? 'r'
  65. : number === 2
  66. ? 'n'
  67. : number === 3
  68. ? 'r'
  69. : number === 4
  70. ? 't'
  71. : 'è';
  72. if (period === 'w' || period === 'W') {
  73. output = 'a';
  74. }
  75. return number + output;
  76. },
  77. week: {
  78. dow: 1, // Monday is the first day of the week.
  79. doy: 4,
  80. },
  81. });