Bez popisu

gl.js 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //! moment.js locale configuration
  2. //! locale : Galician [gl]
  3. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  4. import moment from '../moment';
  5. export default moment.defineLocale('gl', {
  6. months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  7. monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  8. monthsParseExact: true,
  9. weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  10. weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  11. weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  12. weekdaysParseExact : true,
  13. longDateFormat : {
  14. LT : 'H:mm',
  15. LTS : 'H:mm:ss',
  16. L : 'DD/MM/YYYY',
  17. LL : 'D [de] MMMM [de] YYYY',
  18. LLL : 'D [de] MMMM [de] YYYY H:mm',
  19. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  20. },
  21. calendar : {
  22. sameDay : function () {
  23. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  24. },
  25. nextDay : function () {
  26. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  27. },
  28. nextWeek : function () {
  29. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  30. },
  31. lastDay : function () {
  32. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  33. },
  34. lastWeek : function () {
  35. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  36. },
  37. sameElse : 'L'
  38. },
  39. relativeTime : {
  40. future : function (str) {
  41. if (str.indexOf('un') === 0) {
  42. return 'n' + str;
  43. }
  44. return 'en ' + str;
  45. },
  46. past : 'hai %s',
  47. s : 'uns segundos',
  48. ss : '%d segundos',
  49. m : 'un minuto',
  50. mm : '%d minutos',
  51. h : 'unha hora',
  52. hh : '%d horas',
  53. d : 'un día',
  54. dd : '%d días',
  55. M : 'un mes',
  56. MM : '%d meses',
  57. y : 'un ano',
  58. yy : '%d anos'
  59. },
  60. dayOfMonthOrdinalParse : /\d{1,2}º/,
  61. ordinal : '%dº',
  62. week : {
  63. dow : 1, // Monday is the first day of the week.
  64. doy : 4 // The week that contains Jan 4th is the first week of the year.
  65. }
  66. });