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.

73 lines
2.7 KiB

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