From ebccdd50c46fecc62023053c13c797cc27b24bbe Mon Sep 17 00:00:00 2001 From: Sasha Koss Date: Fri, 21 Sep 2018 11:02:26 +0300 Subject: [PATCH] Disable the problematic Galician locale (#886) --- CHANGELOG.md | 2 -- flow-typed/mocha.js.flow | 1 + outdatedLocales.json | 1 + src/esm/locale/index.js | 1 - src/locale/gl/_lib/formatDistance/test.js | 2 +- src/locale/gl/test.js | 2 +- src/locale/index.js | 1 - 7 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 258af35fac..564e20b2f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -132,8 +132,6 @@ for the list of changes made since `v2.0.0-alpha.1`. - [vi locale is updated for v2 format](https://github.com/date-fns/date-fns/pull/846). Kudos to [@lihop](https://github.com/lihop) and [@trongthanh](https://github.com/trongthanh). -- [gl locale](https://github.com/date-fns/date-fns/pull/859). Thanks to [@cocodinTech](https://github.com/cocodinTech). - - [fi locale is updated for v2 format](https://github.com/date-fns/date-fns/pull/775). Kudos to [@sjuvonen](https://github.com/sjuvonen). diff --git a/flow-typed/mocha.js.flow b/flow-typed/mocha.js.flow index a70dac9587..3cebc53cd1 100644 --- a/flow-typed/mocha.js.flow +++ b/flow-typed/mocha.js.flow @@ -1,4 +1,5 @@ // @flow +declare var xdescribe: (description: string, spec: () => void) => void declare var describe: (description: string, spec: () => void) => void declare var it: (description: string, spec: () => void) => void declare var context: (description: string, spec: () => void) => void diff --git a/outdatedLocales.json b/outdatedLocales.json index a952e0745a..3585285602 100644 --- a/outdatedLocales.json +++ b/outdatedLocales.json @@ -10,6 +10,7 @@ "et", "fi", "fil", + "gl", "fr-CH", "hr", "id", diff --git a/src/esm/locale/index.js b/src/esm/locale/index.js index c3c3656509..5030fdad6c 100644 --- a/src/esm/locale/index.js +++ b/src/esm/locale/index.js @@ -8,7 +8,6 @@ export {default as enUS} from './en-US/index.js' export {default as eo} from './eo/index.js' export {default as es} from './es/index.js' export {default as fr} from './fr/index.js' -export {default as gl} from './gl/index.js' export {default as he} from './he/index.js' export {default as hu} from './hu/index.js' export {default as it} from './it/index.js' diff --git a/src/locale/gl/_lib/formatDistance/test.js b/src/locale/gl/_lib/formatDistance/test.js index fbbab604ea..cd7427603a 100644 --- a/src/locale/gl/_lib/formatDistance/test.js +++ b/src/locale/gl/_lib/formatDistance/test.js @@ -4,7 +4,7 @@ import assert from 'power-assert' import formatDistance from '.' -describe('es locale > formatDistance', function () { +xdescribe('gl locale > formatDistance', function () { describe('lessThanXSeconds', function () { context('when the count equals 1', function () { it('returns a proper string', function () { diff --git a/src/locale/gl/test.js b/src/locale/gl/test.js index 9d2241c1e3..5164555704 100644 --- a/src/locale/gl/test.js +++ b/src/locale/gl/test.js @@ -10,7 +10,7 @@ import formatDistanceStrict from '../../formatDistanceStrict' import formatRelative from '../../formatRelative' import parse from '../../parse' -describe('gl locale', function () { +xdescribe('gl locale', function () { context('with `format`', function () { var date = new Date(1986, 3 /* Apr */, 5, 10, 32, 0, 900) diff --git a/src/locale/index.js b/src/locale/index.js index 4fbf7cf08c..7d062d2c0a 100644 --- a/src/locale/index.js +++ b/src/locale/index.js @@ -9,7 +9,6 @@ module.exports = { eo: require('./eo/index.js'), es: require('./es/index.js'), fr: require('./fr/index.js'), - gl: require('./gl/index.js'), he: require('./he/index.js'), hu: require('./hu/index.js'), it: require('./it/index.js'),