]>
git.ipfire.org Git - thirdparty/moment.git/log
Naoko Takano [Fri, 24 Apr 2020 11:28:25 +0000 (20:28 +0900)]
Revert "[locale] ja: fix long month names (#4590)" (#4991)
This reverts commit
cf30706573f537b904fd7ee8bf78f8576a45a87e .
Iskren Chernev [Fri, 24 Apr 2020 11:25:04 +0000 (14:25 +0300)]
Disable TS3 tests for now
Petar Petrov [Fri, 24 Apr 2020 11:23:12 +0000 (14:23 +0300)]
[locale] Tweak bg translation for last week (#5006)
* Tweak bg translation for last week
The current translation adds a very specific and mostly unnecessary 'at' in the beginning. It just looks/sounds wrong. Maybe there are cases when this might be correct but surely not most of the time. [insert 'change my mind' meme]
* move bg changes to proper files
Klemensas [Fri, 24 Apr 2020 11:21:34 +0000 (14:21 +0300)]
[bugfix] ts: Add isoWeek option for duration constructor (fix #5007) (#5008)
sm2017 [Fri, 24 Apr 2020 11:17:42 +0000 (15:47 +0430)]
[locale] fa: Fix typo (#5013)
WikiDiscoverer [Fri, 24 Apr 2020 10:40:41 +0000 (16:10 +0530)]
[locale] gom-latn: Improve processRelativeTime (#5069)
* Correct processRelativeTime
The function processRelativeTime should check whether the time is in the future, and not whether there is a suffix
* Correct processRelativeTime
Updated tests based on the change in the function processRelativeTime
chrisbucholz [Fri, 24 Apr 2020 10:35:57 +0000 (03:35 -0700)]
[bugfix] Invalid parse against array still picks best format (fixes #4435) (#5080)
Josh Nelsson-Smith [Thu, 23 Apr 2020 20:50:28 +0000 (06:50 +1000)]
[bugfix] Uniform handling of day/date when 0 is used (#5098)
Iskren Chernev [Thu, 23 Apr 2020 20:17:27 +0000 (23:17 +0300)]
Merge branch 'pr_5151' into develop
Max Burmagin [Sun, 23 Jun 2019 12:25:26 +0000 (15:25 +0300)]
fix grunt task for ts3.1 tests
Max Burmagin [Sat, 22 Jun 2019 17:54:23 +0000 (20:54 +0300)]
introduce typescript typesversions
Roan Kattouw [Thu, 23 Apr 2020 20:08:07 +0000 (13:08 -0700)]
[locale] hr: Fix month declension in Croation LL, LLL, LLLL formats (#5152)
Months should be in the accusative case in these formats, but they are
returned in the nominative case. This is because these formats hard-code
the dot after the day ("D.") rather than using ordinal notation ("Do").
The regex for detecting accusative case matches "Do" but not "D.".
Many other locales have the same problem, with L* formats using "D."
where "Do" should be used instead, but none of them have different
grammatical forms for months, so nothing breaks for them. Croatian is
the only one where "D." causes this bug.
Downstream bug report from Wikipedia: https://phabricator.wikimedia.org/T223988
Caio Shimada Rabello [Thu, 23 Apr 2020 20:06:34 +0000 (17:06 -0300)]
[locale] pt,pt-br: Uncapitalization of month names (#5158)
Anthony Lau [Thu, 23 Apr 2020 20:04:33 +0000 (04:04 +0800)]
[locale] zh-hk: Update meridiem hour range (#5160)
Stephen Ramthun [Thu, 23 Apr 2020 20:03:19 +0000 (22:03 +0200)]
[locale] nb,nn: use correct abbreviations for months and weekdays (#5165)
Alex Werner [Thu, 23 Apr 2020 19:59:02 +0000 (21:59 +0200)]
[bugfix] Fixing isFunction when Function is undefined (#5174)
Preventing any `Uncaught ReferenceError: Function is not defined` error as per suggested in PR thread.
Ash [Thu, 23 Apr 2020 19:50:07 +0000 (20:50 +0100)]
Fix #4995: typo in Bulgarian abbreviation for January (#5203)
Michael Gwynne [Thu, 23 Apr 2020 19:48:28 +0000 (20:48 +0100)]
[misc] Update moment URL to https (#5204)
Ash [Thu, 23 Apr 2020 19:12:05 +0000 (20:12 +0100)]
[bugfix] Support unusual historic timezone offsets (fixes #5236) (#5237)
Rafael de Melo Silva [Thu, 23 Apr 2020 19:05:46 +0000 (16:05 -0300)]
[locale] tet: Fix seconds translation
Pedro Luiz Cabral Salomon Prado [Thu, 23 Apr 2020 19:04:27 +0000 (16:04 -0300)]
[misc] Remove unused imports (#5260)
Iskren Chernev [Thu, 23 Apr 2020 18:12:06 +0000 (21:12 +0300)]
Do not run tests twice in travis
Iskren Chernev [Thu, 23 Apr 2020 18:05:44 +0000 (21:05 +0300)]
Update node versions in travis.yml
Iskren Chernev [Thu, 23 Apr 2020 17:59:55 +0000 (20:59 +0300)]
Update some deps
Iskren Chernev [Thu, 23 Apr 2020 16:43:06 +0000 (19:43 +0300)]
Export QUnit.only
Iskren Chernev [Thu, 23 Apr 2020 16:42:33 +0000 (19:42 +0300)]
Fix weird test issue
Cameron Chamberlain [Thu, 23 Apr 2020 16:07:27 +0000 (02:07 +1000)]
[misc] Remove stray second arg from `parseFloat` (#5277)
Looks like someone was thinking of parseInt which takes a `radix` param.
In parseFloat there should be one argument only.
Terrence Wong [Thu, 23 Apr 2020 15:04:18 +0000 (23:04 +0800)]
[bugfix] moment#5327 output wrong next week in ja locale (#5329)
* Fix moment#5327 output wrong next week string when in last week of the year in ja locale
* Fix moment#5327 output wrong next week string when in next week of the year in ja locale
HYUNSANG HAN [Thu, 23 Apr 2020 14:26:31 +0000 (23:26 +0900)]
[locale] (en-li) Support ss (#5399)
HYUNSANG HAN [Thu, 23 Apr 2020 14:25:03 +0000 (23:25 +0900)]
[tests] Fix the humanize test message (#5400)
Alan Wang [Thu, 23 Apr 2020 13:52:53 +0000 (21:52 +0800)]
[misc] add FAQ.md (#5452)
Add FAQ addressing some typescript related problems. More to be added in the future.
Golam Rabbani [Mon, 10 Jun 2019 08:05:56 +0000 (14:05 +0600)]
[locale] bn: Improve translation as per Bangla Academy (#5055)
Jean-Baptiste Le Duigou [Mon, 10 Jun 2019 08:03:33 +0000 (10:03 +0200)]
[locale] (br) Breton move from 12-hour to 24-hour notation (#4975)
* Breton : move from 12-hour to 24-hour notation #4974 https://github.com/moment/moment/issues/4974
* Replace [e] by :
André Silva [Mon, 10 Jun 2019 07:59:27 +0000 (08:59 +0100)]
[locale] typos in Irish locale for months (#5127)
Fixed some typos in the Irish locale regarding months.
Francesco Novy [Tue, 7 May 2019 07:38:48 +0000 (09:38 +0200)]
[locale] (en-sg) Rename locale en-SG to en-sg (#5025)
Chien Kira [Mon, 11 Mar 2019 05:06:09 +0000 (14:06 +0900)]
[locale] correct translation of locale for Vietnam (#4874)
* correct translation of locale for Vietnam
* correct translation of locale for Vietnam (edit proper src files)
* Update author comment line
Vinay Date [Mon, 11 Feb 2019 22:57:06 +0000 (04:27 +0530)]
[locale] mr (Marathi) (#4990)
* tests according to changes in mr.js
* [locale] mr (Marathi)
We Marathi people follow standards mentioned below, to label timespans.
Label | Time Span
------------ | -------------
पहाटे (post midnight, pre-sunrise) | >= 12am to < 6am
सकाळी (post sunrise, pre-noon) | >= 6am to < 12pm
दुपारी (afternoon) | >= 12pm to < 5pm
सायंकाळी (evening) | >= 5pm to < 8pm
रात्री (night) | >= 8pm to < 12am
Actually, 12am is confusing in Marathi tradition. In modern clock system, Moment 12am is considered in arriving date as 0am. And in Marathi tradition it is referred to as final moment of the previous date (Sort of, 0:01 is starting minute of the arriving date) . To comply with modern clock system, I propose to refer to 0am as पहाटे , so that it is considered as moment in the arriving date. Hope this discription itself is not confusing :)
Another point is about range of पहाटे, ie. >= 0am to < 6am. Though conventionally, upto 2 am, we refer to the time as रात्री or पहाटे, both alternatively, I want to specifically call पहाटे for early times in the arriving date and रात्री for late times in the departing date, to make it more specific and well-defined, avoiding confusion about date of the time.
Phil Davis [Sat, 2 Feb 2019 07:17:19 +0000 (13:02 +0545)]
[tests] Fix various text typos (#4976)
Sashko Todorov [Sun, 27 Jan 2019 19:28:47 +0000 (20:28 +0100)]
[locale] improve mk translation (#4958)
* Update mk.js
* Update mk.js
* Update mk.js
* Update mk.js
* [locale] improve mk translation
Kunal Marwaha [Thu, 24 Jan 2019 07:39:48 +0000 (23:39 -0800)]
[locale] es: Add es translation for invalidDate (#4560)
* Add es translation for invalidDate
* Fix lint
Ash [Wed, 23 Jan 2019 00:45:21 +0000 (00:45 +0000)]
[bugfix] Fix #4962 updateLocale with null to reset (#4966)
Kunal Marwaha [Wed, 23 Jan 2019 00:41:41 +0000 (16:41 -0800)]
[new locale] (oc-lnc) Occitan (#4957)
* Add oc-lnc files
* Fix calendar test
* Fix the rest of tests
* Add locale author
* Dont make changes to package-lock
* Add newline at end of file
Gilly Barr [Tue, 22 Jan 2019 02:37:26 +0000 (04:37 +0200)]
[misc] Fix type of WeekSpec (#4634)
* Fix "the the" typo in test (#4578)
* [locale] Fix #4568: Insert punjabi for "next" (#4583)
* Fix type of WeekSpec
You can set `dow` without setting `doy`, so the type should reflect that
Kunal Marwaha [Mon, 21 Jan 2019 21:22:22 +0000 (13:22 -0800)]
[misc] release process fixes (#4961)
* Fix locale abbreviation in comment
* Update package-lock.json
Kunal Marwaha [Mon, 21 Jan 2019 20:59:53 +0000 (12:59 -0800)]
Build 2.24.0
Kunal Marwaha [Mon, 21 Jan 2019 20:58:37 +0000 (12:58 -0800)]
Bump version to 2.24.0
Kunal Marwaha [Mon, 21 Jan 2019 20:57:09 +0000 (12:57 -0800)]
Update changelog for 2.24.0
Kristian Sakarisson [Mon, 21 Jan 2019 20:36:47 +0000 (22:36 +0200)]
[locale] fo: Fixed relativeTimes for m and M (#4609) (#4682)
* [locale] fo: Fixed relativeTimes for m and M (#4609)
* Add new Faroese locale author
* Revert locale/* edit from commit
b51d421 .
Ronny Roeller [Mon, 21 Jan 2019 20:35:24 +0000 (21:35 +0100)]
[misc] Remove unused variable defaults (#4959)
The default values of the initialized fields are overwritten in the following lines. This means that the code never relies on the variable defaults.
Removing the unused defaults makes the code easier to read.
Libor Nenadál [Mon, 21 Jan 2019 05:57:00 +0000 (06:57 +0100)]
[locale] Extend cs locale with name of the months in genitive (#4771)
Kunal Marwaha [Mon, 21 Jan 2019 05:48:12 +0000 (21:48 -0800)]
[feature] Add localeSort param to Locale weekday methods (#4553)
* Add localeSort param to Locale weekday methods
* Add concrete test case
Kunal Marwaha [Sun, 20 Jan 2019 21:23:20 +0000 (13:23 -0800)]
[locale] (es-us) long date is D [de] MMMM [de] YYYY (#4954)
Shiwani [Sat, 19 Jan 2019 02:38:58 +0000 (08:08 +0530)]
[bugfix] (TypeScript) allow update of a single relativeTime handler
Cassiano Montanari [Sat, 19 Jan 2019 02:30:42 +0000 (00:30 -0200)]
[locale] Capitalization of pt month names (#4557)
* Updated pt-br tests
* Update pt-br.js
* Update pt-br.js
* Updated PT tests
* Updated pt-js month names capitalization
Cassiano Montanari [Sat, 19 Jan 2019 02:25:10 +0000 (00:25 -0200)]
[locale] Capitalization pt-br month names and tests (#4558)
* Updated capitalization of months
* Updated capitalization of month names
Takuya Sawada [Sat, 19 Jan 2019 02:11:07 +0000 (11:11 +0900)]
[locale] ja: fix long month names (#4590)
* Fix "the the" typo in test (#4578)
* [locale] ja: fix long month names
Ash [Sat, 19 Jan 2019 02:09:44 +0000 (02:09 +0000)]
[bugfix] Fix startOf/endOf DST issues while boosting performance (#4338)
* Fix startOf/endOf DST issues
* Performance improvements
* Rewrite for legibility
* Fix for years in range 0-99
* Remove placeholder comments
* Revert comment
* Remove useless special-case
* Code review change: use break consistenly
* Rename per code review
* Fix typo
* Inline variable to end naming debate
* Address review comments
Kunal Marwaha [Fri, 18 Jan 2019 04:47:18 +0000 (20:47 -0800)]
[locale] es-us: Update month parsing to be dot lenient (#4377)
* [locale] es-us: Update month parsing to be dot lenient, fixes #4162
* Add test from #4162
* add @chrisrodz from #4415
Kunal Marwaha [Fri, 18 Jan 2019 04:39:00 +0000 (20:39 -0800)]
[locale] te: Fix typo in july (#4544)
Martin McWhorter [Fri, 18 Jan 2019 03:11:56 +0000 (03:11 +0000)]
[bugfix] locale/en-ie.js date format (#4849)
* Update locale/en-ie.js
Correct to en-IE date locale to match the ICU definition: http://www.localeplanet.com/icu/en-IE/index.html
* Revert to orgininal
* Update unit test
Fabio [Fri, 18 Jan 2019 03:10:56 +0000 (04:10 +0100)]
[new locale] Adding Italian (Swiss) it-ch (#4875)
Artem Roshko [Fri, 18 Jan 2019 03:10:13 +0000 (08:10 +0500)]
[bugfix] Make Duration#as work with quarters (#4887)
Timothy Z Searcy [Fri, 18 Jan 2019 03:08:52 +0000 (19:08 -0800)]
[tests] relative time threshold doesn't work for multiple (#4913)
* [bugfix] relative time threshold doesn't work for multiple
* return humanize to normal
André Silva [Fri, 18 Jan 2019 03:07:31 +0000 (03:07 +0000)]
[new locale] Adding Irish language (ga) (#4930)
* Added Irish locale
* Added the unit testing for ga locale.
* Added some more tests to ga locale.
* Finished the unit tests for ga locale.
* Added the header in the locale file
* Removed locale from forbidden folder. Sorry
:q!
Matthew Castrillon - Madrigal [Fri, 18 Jan 2019 03:05:51 +0000 (03:05 +0000)]
[new locale] Added support for en-SG (Singapore) (#4951)
* en-SG locale. English (Singapore) language supported
* grunt tests pass for new en-SG locale
WikiDiscoverer [Thu, 17 Jan 2019 10:43:10 +0000 (16:13 +0530)]
[locale] Update hour to standard dialect for gom-latn (#4936)
* Update hour to standard dialect
* Update gom-latn.js
Timothy Z Searcy [Thu, 17 Jan 2019 10:25:02 +0000 (02:25 -0800)]
[bugfix] pipeline breaks with rollup v0.68 (#4912)
Kunal Marwaha [Thu, 13 Dec 2018 06:39:15 +0000 (22:39 -0800)]
Build 2.23.0
Kunal Marwaha [Thu, 13 Dec 2018 06:38:00 +0000 (22:38 -0800)]
Bump version to 2.23.0
Kunal Marwaha [Thu, 13 Dec 2018 06:37:03 +0000 (22:37 -0800)]
Update changelog for 2.23.0
Kunal Marwaha [Thu, 13 Dec 2018 06:13:25 +0000 (22:13 -0800)]
[misc] run `npm audit fix` (#4903)
acutexyz [Thu, 13 Dec 2018 05:53:56 +0000 (07:53 +0200)]
[locale] ky: Fix spelling typos (#4894)
Ash [Thu, 13 Dec 2018 05:15:31 +0000 (05:15 +0000)]
[bugfix] isBetween should return false for invalid dates (#4417)
* [bugfix]: isBetween should return false for invalid dates
* Tweak to use void not null for TS 1.x
* Add tests requested in code review
Ash [Thu, 13 Dec 2018 05:12:16 +0000 (05:12 +0000)]
[feature] Fix #4518: Add support to add/subtract ISO weeks (#4563)
Ash [Thu, 13 Dec 2018 05:05:25 +0000 (05:05 +0000)]
[bugfix] Fix #4698: Use ISO WeekYear for HTML5_FMT.WEEK (#4700)
* [bugfix] Fix #4698: Use ISO WeekYear for HTML5_FMT.WEEK
* [bugfix] Fix #4698: Added regression tests
Guo Xiang Tan [Thu, 13 Dec 2018 04:42:07 +0000 (12:42 +0800)]
[misc] Fix typo in pa-in locale (#4768)
* Fix typos.
* Only touch src/ file
Shahram M. Hassan [Thu, 13 Dec 2018 04:33:30 +0000 (07:33 +0300)]
[new locale] added Kurdish language (ku) (#4863)
* add Kurdish language locale (ku)
* clean up and fixed some linte error
* Revert changes to package-lock.json
Grey Baker [Thu, 13 Dec 2018 04:08:17 +0000 (04:08 +0000)]
[misc] Add SemVer compatibility badge to README (#4674)
Kunal Marwaha [Thu, 13 Dec 2018 04:02:30 +0000 (20:02 -0800)]
[misc] Update issue templates (#4661)
* Update issue templates
* Remove old issue template
Roy [Wed, 31 Oct 2018 03:55:29 +0000 (04:55 +0100)]
[locale] (nl) order months correctly in regex (#4810)
Josh Soref [Wed, 31 Oct 2018 03:30:31 +0000 (23:30 -0400)]
[locale] fix comment about "doy" (#4671)
* fix date of year comments
* [locale] fix date of year comments
Andres Kalle [Wed, 31 Oct 2018 03:28:05 +0000 (05:28 +0200)]
[misc] add typings for duration.isValid() (#4681)
Ash [Wed, 31 Oct 2018 03:18:54 +0000 (03:18 +0000)]
[misc] Remove unnecessary ternary spotted by Coverity (#4663)
Ioannis Cherouvim [Wed, 31 Oct 2018 03:16:09 +0000 (05:16 +0200)]
[misc] minor typo in comments (#4817)
* minor typo in comments
* only update file in src/
* only update file in src/
Kunal Marwaha [Wed, 31 Oct 2018 02:57:34 +0000 (22:57 -0400)]
[misc] Upgrade some devDeps to fix vulnerabilities (#4828)
* Upgrade some devDeps to fix vulnerabilities
* Bump coveralls version
* Bump nyc version
* Bump down nyc version to pass tests on node 5
* Force npm 3 if Travis installs npm 2
* Change equalTest output to roman characters
* Update package-lock
* Comment out broken tests
Kunal Marwaha [Fri, 1 Jun 2018 06:45:43 +0000 (23:45 -0700)]
Build 2.22.2
Kunal Marwaha [Fri, 1 Jun 2018 06:44:21 +0000 (23:44 -0700)]
Bump version to 2.22.2
Kunal Marwaha [Fri, 1 Jun 2018 06:43:56 +0000 (23:43 -0700)]
Update changelog for 2.22.2
Kunal Marwaha [Fri, 1 Jun 2018 06:32:44 +0000 (23:32 -0700)]
[misc] Fix grunt devDep to 3.5.2 (#4648)
Olivier G [Fri, 1 Jun 2018 05:47:06 +0000 (07:47 +0200)]
[misc] Typo in test (#4610)
All tests using Feb 29th are labelled as Feb 28th.
Ash [Fri, 1 Jun 2018 05:40:30 +0000 (06:40 +0100)]
[bugfix] Avoid using trim() (#4564)
Ash [Sun, 29 Apr 2018 20:42:28 +0000 (21:42 +0100)]
[locale] Fix #4568: Insert punjabi for "next" (#4583)
Maxime Guerreiro [Tue, 24 Apr 2018 23:56:56 +0000 (01:56 +0200)]
[misc] Fix "the the" typo in test (#4578)
SobakaSlava [Tue, 24 Apr 2018 23:54:54 +0000 (02:54 +0300)]
[locale] Fix wrong calendar() output in 'be' localisation (#4528)
* Fix wrong calendar() output in 'be' localisation
* Add one specific belarusian letter
* Add a test
* Fix linter errors
Kunal Marwaha [Tue, 17 Apr 2018 20:28:35 +0000 (12:28 -0800)]
[locale] az: Fix typo in seconds (#4527)
* [locale] az: Improve relative time for seconds
in src/test/locale/az.js
* [locale] az: Improve relative time for seconds
I hope this time I'm doing it right
Caleb Cauthon [Sun, 15 Apr 2018 06:09:18 +0000 (01:09 -0500)]
[bugfix] Treat periods as periods, not regex-anything period, for weekday parsing in strict mode. (#4453)
* Treat periods in short weekdays as literal periods when in strict mode with exact parsing turned off
* Add tests for the other 2 areas where periods were treated improperly, and organize the tests
* Remove trailing commas
* Follow styling standards
Kunal Marwaha [Sun, 15 Apr 2018 05:53:50 +0000 (22:53 -0700)]
Build 2.22.1
Kunal Marwaha [Sun, 15 Apr 2018 05:52:33 +0000 (22:52 -0700)]
Bump version to 2.22.1
Kunal Marwaha [Sun, 15 Apr 2018 05:52:15 +0000 (22:52 -0700)]
Update changelog for 2.22.1
Martin Dreher [Sun, 15 Apr 2018 05:35:39 +0000 (07:35 +0200)]
[misc] fix typo in comment for day-of-month.js (#4551)