gl.js 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //! moment.js locale configuration
  2. //! locale : galician (gl)
  3. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  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 gl = moment.defineLocale('gl', {
  11. months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'),
  12. monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'),
  13. monthsParseExact: true,
  14. weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'),
  15. weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'),
  16. weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'),
  17. weekdaysParseExact : true,
  18. longDateFormat : {
  19. LT : 'H:mm',
  20. LTS : 'H:mm:ss',
  21. L : 'DD/MM/YYYY',
  22. LL : 'D MMMM YYYY',
  23. LLL : 'D MMMM YYYY H:mm',
  24. LLLL : 'dddd D MMMM YYYY H:mm'
  25. },
  26. calendar : {
  27. sameDay : function () {
  28. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  29. },
  30. nextDay : function () {
  31. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  32. },
  33. nextWeek : function () {
  34. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  35. },
  36. lastDay : function () {
  37. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  38. },
  39. lastWeek : function () {
  40. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  41. },
  42. sameElse : 'L'
  43. },
  44. relativeTime : {
  45. future : function (str) {
  46. if (str === 'uns segundos') {
  47. return 'nuns segundos';
  48. }
  49. return 'en ' + str;
  50. },
  51. past : 'hai %s',
  52. s : 'uns segundos',
  53. m : 'un minuto',
  54. mm : '%d minutos',
  55. h : 'unha hora',
  56. hh : '%d horas',
  57. d : 'un día',
  58. dd : '%d días',
  59. M : 'un mes',
  60. MM : '%d meses',
  61. y : 'un ano',
  62. yy : '%d anos'
  63. },
  64. ordinalParse : /\d{1,2}º/,
  65. ordinal : '%dº',
  66. week : {
  67. dow : 1, // Monday is the first day of the week.
  68. doy : 7 // The week that contains Jan 1st is the first week of the year.
  69. }
  70. });
  71. return gl;
  72. }));