gd.js 2.6 KB

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