gl.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // moment.js language configuration
  2. // language : galician (gl)
  3. // author : Juan G. Hurtado : https://github.com/juanghurtado
  4. (function (factory) {
  5. if (typeof define === 'function' && define.amd) {
  6. define(['moment'], factory); // AMD
  7. } else if (typeof exports === 'object') {
  8. module.exports = factory(require('../moment')); // Node
  9. } else {
  10. factory(window.moment); // Browser global
  11. }
  12. }(function (moment) {
  13. return moment.lang('gl', {
  14. months : "Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),
  15. monthsShort : "Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),
  16. weekdays : "Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),
  17. weekdaysShort : "Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),
  18. weekdaysMin : "Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),
  19. longDateFormat : {
  20. LT : "H:mm",
  21. L : "DD/MM/YYYY",
  22. LL : "D MMMM YYYY",
  23. LLL : "D MMMM YYYY LT",
  24. LLLL : "dddd D MMMM YYYY LT"
  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. ordinal : '%dº',
  65. week : {
  66. dow : 1, // Monday is the first day of the week.
  67. doy : 7 // The week that contains Jan 1st is the first week of the year.
  68. }
  69. });
  70. }));