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.

67 lines
2.1 KiB

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