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.

cy.js 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. //! moment.js locale configuration
  2. //! locale : Welsh [cy]
  3. //! author : Robert Allen : https://github.com/robgallen
  4. //! author : https://github.com/ryangreaves
  5. ;(function (global, factory) {
  6. typeof exports === 'object' && typeof module !== 'undefined'
  7. && typeof require === 'function' ? factory(require('../moment')) :
  8. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  9. factory(global.moment)
  10. }(this, (function (moment) { 'use strict';
  11. //! moment.js locale configuration
  12. var cy = moment.defineLocale('cy', {
  13. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
  14. '_'
  15. ),
  16. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
  17. '_'
  18. ),
  19. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
  20. '_'
  21. ),
  22. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  23. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  24. weekdaysParseExact: true,
  25. // time formats are the same as en-gb
  26. longDateFormat: {
  27. LT: 'HH:mm',
  28. LTS: 'HH:mm:ss',
  29. L: 'DD/MM/YYYY',
  30. LL: 'D MMMM YYYY',
  31. LLL: 'D MMMM YYYY HH:mm',
  32. LLLL: 'dddd, D MMMM YYYY HH:mm',
  33. },
  34. calendar: {
  35. sameDay: '[Heddiw am] LT',
  36. nextDay: '[Yfory am] LT',
  37. nextWeek: 'dddd [am] LT',
  38. lastDay: '[Ddoe am] LT',
  39. lastWeek: 'dddd [diwethaf am] LT',
  40. sameElse: 'L',
  41. },
  42. relativeTime: {
  43. future: 'mewn %s',
  44. past: '%s yn ôl',
  45. s: 'ychydig eiliadau',
  46. ss: '%d eiliad',
  47. m: 'munud',
  48. mm: '%d munud',
  49. h: 'awr',
  50. hh: '%d awr',
  51. d: 'diwrnod',
  52. dd: '%d diwrnod',
  53. M: 'mis',
  54. MM: '%d mis',
  55. y: 'blwyddyn',
  56. yy: '%d flynedd',
  57. },
  58. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  59. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  60. ordinal: function (number) {
  61. var b = number,
  62. output = '',
  63. lookup = [
  64. '',
  65. 'af',
  66. 'il',
  67. 'ydd',
  68. 'ydd',
  69. 'ed',
  70. 'ed',
  71. 'ed',
  72. 'fed',
  73. 'fed',
  74. 'fed', // 1af to 10fed
  75. 'eg',
  76. 'fed',
  77. 'eg',
  78. 'eg',
  79. 'fed',
  80. 'eg',
  81. 'eg',
  82. 'fed',
  83. 'eg',
  84. 'fed', // 11eg to 20fed
  85. ];
  86. if (b > 20) {
  87. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  88. output = 'fed'; // not 30ain, 70ain or 90ain
  89. } else {
  90. output = 'ain';
  91. }
  92. } else if (b > 0) {
  93. output = lookup[b];
  94. }
  95. return number + output;
  96. },
  97. week: {
  98. dow: 1, // Monday is the first day of the week.
  99. doy: 4, // The week that contains Jan 4th is the first week of the year.
  100. },
  101. });
  102. return cy;
  103. })));