From: Kunal Marwaha Date: Thu, 24 Jan 2019 07:39:48 +0000 (-0800) Subject: [locale] es: Add es translation for invalidDate (#4560) X-Git-Tag: 2.25.0~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39f63a50bc50cb4f1bf42196d3a88f5e2d9957cc;p=thirdparty%2Fmoment.git [locale] es: Add es translation for invalidDate (#4560) * Add es translation for invalidDate * Fix lint --- diff --git a/src/locale/es.js b/src/locale/es.js index 4dc588a07..67362d665 100644 --- a/src/locale/es.js +++ b/src/locale/es.js @@ -79,5 +79,6 @@ export default moment.defineLocale('es', { week : { dow : 1, // Monday is the first day of the week. doy : 4 // The week that contains Jan 4th is the first week of the year. - } + }, + invalidDate: 'Fecha invalida' }); diff --git a/src/test/locale/es.js b/src/test/locale/es.js index ef3e679b9..02bad1d45 100644 --- a/src/test/locale/es.js +++ b/src/test/locale/es.js @@ -217,3 +217,6 @@ test('test short months proper', function (assert) { assert.equal(moment(str, 'DD-MMM-YYYY').month(), '7', '02-ago-2016 month should be 7'); }); +test('translated invalid date', function (assert) { + assert.equal(moment('nonsense', 'DD-MMM-YYYY').format(), 'Fecha invalida', 'Invalid date should translate'); +});