From: Kunal Marwaha Date: Sat, 18 Mar 2017 06:21:31 +0000 (-0400) Subject: Filter out en from locales X-Git-Tag: 2.18.0~5^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9d4cc5c2e6fd7c3b75df2b27252e1483dde1e46;p=thirdparty%2Fmoment.git Filter out en from locales --- diff --git a/tasks/transpile.js b/tasks/transpile.js index 5223bd85f..25011ed81 100644 --- a/tasks/transpile.js +++ b/tasks/transpile.js @@ -280,7 +280,7 @@ module.exports = function (grunt) { grunt.log.ok('build/umd/min/moment-with-locales.custom.js'); }).then(function () { var moment = require('../build/umd/min/moment-with-locales.custom.js'); - if (moment.locales().length !== localeFiles.length) { + if (moment.locales().filter(locale => locale !== 'en').length !== localeFiles.length) { throw new Error( 'You probably specified locales requiring ' + 'parent locale, but didn\'t specify parent');