gd.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //! moment.js locale configuration
  2. ;(function (global, factory) {
  3. typeof exports === 'object' && typeof module !== 'undefined'
  4. && typeof require === 'function' ? factory(require('../moment')) :
  5. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  6. factory(global.moment)
  7. }(this, (function (moment) { 'use strict';
  8. var months = [
  9. 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
  10. ];
  11. var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
  12. var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
  13. var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
  14. var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  15. var gd = moment.defineLocale('gd', {
  16. months : months,
  17. monthsShort : monthsShort,
  18. monthsParseExact : true,
  19. weekdays : weekdays,
  20. weekdaysShort : weekdaysShort,
  21. weekdaysMin : weekdaysMin,
  22. longDateFormat : {
  23. LT : 'HH:mm',
  24. LTS : 'HH:mm:ss',
  25. L : 'DD/MM/YYYY',
  26. LL : 'D MMMM YYYY',
  27. LLL : 'D MMMM YYYY HH:mm',
  28. LLLL : 'dddd, D MMMM YYYY HH:mm'
  29. },
  30. calendar : {
  31. sameDay : '[An-diugh aig] LT',
  32. nextDay : '[A-màireach aig] LT',
  33. nextWeek : 'dddd [aig] LT',
  34. lastDay : '[An-dè aig] LT',
  35. lastWeek : 'dddd [seo chaidh] [aig] LT',
  36. sameElse : 'L'
  37. },
  38. relativeTime : {
  39. future : 'ann an %s',
  40. past : 'bho chionn %s',
  41. s : 'beagan diogan',
  42. ss : '%d diogan',
  43. m : 'mionaid',
  44. mm : '%d mionaidean',
  45. h : 'uair',
  46. hh : '%d uairean',
  47. d : 'latha',
  48. dd : '%d latha',
  49. M : 'mìos',
  50. MM : '%d mìosan',
  51. y : 'bliadhna',
  52. yy : '%d bliadhna'
  53. },
  54. dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
  55. ordinal : function (number) {
  56. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  57. return number + output;
  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. });
  64. return gd;
  65. })));