{"action":"created","issue":{"url":"https://api.github.com/repos/moment/moment/issues/2677","labels_url":"https://api.github.com/repos/moment/moment/issues/2677/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment/issues/2677/comments","events_url":"https://api.github.com/repos/moment/moment/issues/2677/events","html_url":"https://github.com/moment/moment/issues/2677","id":111290435,"number":2677,"title":"Fix accents over spanish version.","user":{"login":"javenosa","id":10986066,"avatar_url":"https://avatars.githubusercontent.com/u/10986066?v=3","gravatar_id":"","url":"https://api.github.com/users/javenosa","html_url":"https://github.com/javenosa","followers_url":"https://api.github.com/users/javenosa/followers","following_url":"https://api.github.com/users/javenosa/following{/other_user}","gists_url":"https://api.github.com/users/javenosa/gists{/gist_id}","starred_url":"https://api.github.com/users/javenosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javenosa/subscriptions","organizations_url":"https://api.github.com/users/javenosa/orgs","repos_url":"https://api.github.com/users/javenosa/repos","events_url":"https://api.github.com/users/javenosa/events{/privacy}","received_events_url":"https://api.github.com/users/javenosa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/moment/moment/labels/Language","name":"Language","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-13T23:12:09Z","updated_at":"2015-10-15T15:38:48Z","closed_at":null,"body":"Hello.\r\n\r\nIf I use the current version (Build 2.10.5) of es locale the accent doesn't look ok, even with UTF 8 as charset.\r\n\r\nThanks\r\n\r\nHere is the fixed version:\r\n\r\n\t//! moment.js locale configuration\r\n\t//! locale : spanish (es)\r\n\t//! author : Julio Napurí : https://github.com/julionc\r\n\r\n\t(function (global, factory) {\r\n\t   typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :\r\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\r\n\t   factory(global.moment)\r\n\t}(this, function (moment) { 'use strict';\r\n\r\n\r\n\t\tvar monthsShortDot = 'Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.'.split('_'),\r\n\t\t\tmonthsShort = 'Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic'.split('_');\r\n\r\n\t\tvar es = moment.defineLocale('es', {\r\n\t\t\tmonths : 'Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre'.split('_'),\r\n\t\t\tmonthsShort : function (m, format) {\r\n\t\t\t\tif (/-MMM-/.test(format)) {\r\n\t\t\t\t\treturn monthsShort[m.month()];\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn monthsShortDot[m.month()];\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tweekdays : 'Domingo_Lunes_Martes_Mi\\u00e9rcoles_Jueves_Viernes_S\\u00e1bado'.split('_'),\r\n\t\t\tweekdaysShort : 'Dom._Lun._Mar._Mi\\u00e9._Jue._Vie._S\\u00e1b.'.split('_'),\r\n\t\t\tweekdaysMin : 'Do_Lu_Ma_Mi_Ju_Vi_S\\u00e1'.split('_'),\r\n\t\t\tlongDateFormat : {\r\n\t\t\t\tLT : 'H:mm',\r\n\t\t\t\tLTS : 'H:mm:ss',\r\n\t\t\t\tL : 'DD/MM/YYYY',\r\n\t\t\t\tLL : 'D [de] MMMM [de] YYYY',\r\n\t\t\t\tLLL : 'D [de] MMMM [de] YYYY H:mm',\r\n\t\t\t\tLLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'\r\n\t\t\t},\r\n\t\t\tcalendar : {\r\n\t\t\t\tsameDay : function () {\r\n\t\t\t\t\treturn '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n\t\t\t\t},\r\n\t\t\t\tnextDay : function () {\r\n\t\t\t\t\treturn '[ma\\u00f1ana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n\t\t\t\t},\r\n\t\t\t\tnextWeek : function () {\r\n\t\t\t\t\treturn 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n\t\t\t\t},\r\n\t\t\t\tlastDay : function () {\r\n\t\t\t\t\treturn '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n\t\t\t\t},\r\n\t\t\t\tlastWeek : function () {\r\n\t\t\t\t\treturn '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n\t\t\t\t},\r\n\t\t\t\tsameElse : 'L'\r\n\t\t\t},\r\n\t\t\trelativeTime : {\r\n\t\t\t\tfuture : 'en %s',\r\n\t\t\t\tpast : 'hace %s',\r\n\t\t\t\ts : 'unos segundos',\r\n\t\t\t\tm : 'un minuto',\r\n\t\t\t\tmm : '%d minutos',\r\n\t\t\t\th : 'una hora',\r\n\t\t\t\thh : '%d horas',\r\n\t\t\t\td : 'un d\\u00eda',\r\n\t\t\t\tdd : '%d d\\u00edas',\r\n\t\t\t\tM : 'un mes',\r\n\t\t\t\tMM : '%d meses',\r\n\t\t\t\ty : 'un a\\u00f1o',\r\n\t\t\t\tyy : '%d a\\u00f1os'\r\n\t\t\t},\r\n\t\t\tordinalParse : /\\d{1,2}º/,\r\n\t\t\tordinal : '%dº',\r\n\t\t\tweek : {\r\n\t\t\t\tdow : 1, // Monday is the first day of the week.\r\n\t\t\t\tdoy : 4  // The week that contains Jan 4th is the first week of the year.\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn es;\r\n\r\n\t}));"},"comment":{"url":"https://api.github.com/repos/moment/moment/issues/comments/148426770","html_url":"https://github.com/moment/moment/issues/2677#issuecomment-148426770","issue_url":"https://api.github.com/repos/moment/moment/issues/2677","id":148426770,"user":{"login":"mj1856","id":1396388,"avatar_url":"https://avatars.githubusercontent.com/u/1396388?v=3","gravatar_id":"","url":"https://api.github.com/users/mj1856","html_url":"https://github.com/mj1856","followers_url":"https://api.github.com/users/mj1856/followers","following_url":"https://api.github.com/users/mj1856/following{/other_user}","gists_url":"https://api.github.com/users/mj1856/gists{/gist_id}","starred_url":"https://api.github.com/users/mj1856/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mj1856/subscriptions","organizations_url":"https://api.github.com/users/mj1856/orgs","repos_url":"https://api.github.com/users/mj1856/repos","events_url":"https://api.github.com/users/mj1856/events{/privacy}","received_events_url":"https://api.github.com/users/mj1856/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T15:38:48Z","updated_at":"2015-10-15T15:38:48Z","body":"Thanks, but could you please send a pull request, rather than paste code in comments?"}}