增加基本项目配置
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
+416
@@ -0,0 +1,416 @@
|
||||
## [1.8.22](https://github.com/iamkun/dayjs/compare/v1.8.21...v1.8.22) (2020-03-08)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add IsoWeek plugin ([#811](https://github.com/iamkun/dayjs/issues/811)) ([28a2207](https://github.com/iamkun/dayjs/commit/28a2207ef9849afbac15dd29267b2e7a09cd3c16))
|
||||
* Fix unsupported locale fallback to previous one ([#819](https://github.com/iamkun/dayjs/issues/819)) ([4868715](https://github.com/iamkun/dayjs/commit/48687152cf5bee6a4c1b8ceea4bda8b9bab9be10))
|
||||
|
||||
## [1.8.21](https://github.com/iamkun/dayjs/compare/v1.8.20...v1.8.21) (2020-02-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Set + Get accept 'D' as the short version of 'date' ([#795](https://github.com/iamkun/dayjs/issues/795)) ([523c038](https://github.com/iamkun/dayjs/commit/523c03880fa8bbad83214494ad02cd606cdb8b30))
|
||||
* Update DayOfYear plugin type ([#799](https://github.com/iamkun/dayjs/issues/799)) ([5809652](https://github.com/iamkun/dayjs/commit/5809652e40245b7759827d9bf317abdcfa75a330))
|
||||
* Update fi (Finnish) locale relativeTime ([#797](https://github.com/iamkun/dayjs/issues/797)) ([4a470fb](https://github.com/iamkun/dayjs/commit/4a470fbd6fef9e051727d0f26d53cc050b85935d))
|
||||
|
||||
## [1.8.20](https://github.com/iamkun/dayjs/compare/v1.8.19...v1.8.20) (2020-02-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add Bislama Locale (bi) ([#780](https://github.com/iamkun/dayjs/issues/780)) ([9ac6ab4](https://github.com/iamkun/dayjs/commit/9ac6ab481bc883dd4ecc02caab12c8b2fc218a42))
|
||||
* Fix weekOfYear plugin to support yearStart locale for better week number result ([#769](https://github.com/iamkun/dayjs/issues/769)) ([f00db36](https://github.com/iamkun/dayjs/commit/f00db36e70bc7beaca1abadeb30a9b1fbb3261ee))
|
||||
* Update et (Estonian) locale relativeTime ([#790](https://github.com/iamkun/dayjs/issues/790)) ([d8e0f45](https://github.com/iamkun/dayjs/commit/d8e0f45f6cd2d5e5704b9797929227454c92d1a5))
|
||||
* Update LocaleData plugin to support dayjs.localeData().weekdays() API ([287fed6](https://github.com/iamkun/dayjs/commit/287fed6db9eb4fd979b4861aca4dacbd32422533)), closes [#779](https://github.com/iamkun/dayjs/issues/779)
|
||||
* Update LocaleData plugin to support dayjs.months dayjs.weekdays API ([144c2ae](https://github.com/iamkun/dayjs/commit/144c2ae6e15fbf89e3acd7c8cb9e237c5f6e1348)), closes [#779](https://github.com/iamkun/dayjs/issues/779)
|
||||
* Update pl locale fusional config ([d372475](https://github.com/iamkun/dayjs/commit/d3724758bb27d5b17587b995ba14e7e80dcd1151))
|
||||
|
||||
## [1.8.19](https://github.com/iamkun/dayjs/compare/v1.8.18...v1.8.19) (2020-01-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add UpdateLocale plugin to update a locale's properties ([#766](https://github.com/iamkun/dayjs/issues/766)) ([82ce2ba](https://github.com/iamkun/dayjs/commit/82ce2ba8d7e402e40f6d005d400eb5356a0b0633))
|
||||
* Fix CustomParseFormat Plugin 'YYYY-MM' use first day of the month ([ba709ec](https://github.com/iamkun/dayjs/commit/ba709eca86a71ae648bc68bf67d9abdc229198d4)), closes [#761](https://github.com/iamkun/dayjs/issues/761)
|
||||
* Fix CustomParseFormat Plugin to set correct locale ([66ce23f](https://github.com/iamkun/dayjs/commit/66ce23f2e18c5506e8f1a7ef20d3483a4df80087))
|
||||
* Fix WeekOfYear Plugin wrong calender week number bug ([79b86db](https://github.com/iamkun/dayjs/commit/79b86dbbf3cfd3f1e2165b3d479a7061ad1b6925)), closes [#760](https://github.com/iamkun/dayjs/issues/760)
|
||||
* Update RelativeTime plugin to support function to make additional processing ([#767](https://github.com/iamkun/dayjs/issues/767)) ([4bd9250](https://github.com/iamkun/dayjs/commit/4bd9250fbe7131e2fddfb5fa1b3350e8c2262ca9))
|
||||
* Update ru, uk, cs locale to support relativeTime with plural ([3f080f7](https://github.com/iamkun/dayjs/commit/3f080f7d6bfdc4018cbb7c4d0112ff1ead4ef6b8))
|
||||
|
||||
## [1.8.18](https://github.com/iamkun/dayjs/compare/v1.8.17...v1.8.18) (2019-12-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add missing locale type definition ([#716](https://github.com/iamkun/dayjs/issues/716)) ([cde5d0b](https://github.com/iamkun/dayjs/commit/cde5d0b91be7b2f5f3098de4aa0b9a4f0f28ea5c))
|
||||
* Fix .locale() handel unsupported locale ([78ec173](https://github.com/iamkun/dayjs/commit/78ec173fcecc1299516ab7b44f4554d431b4b2fd))
|
||||
* Update Italian locale (it) ([#727](https://github.com/iamkun/dayjs/issues/727)) ([5b53e98](https://github.com/iamkun/dayjs/commit/5b53e98c0a3ba0eb9573a9c77caeb907439be9e7))
|
||||
* Update locale (fa) ([#733](https://github.com/iamkun/dayjs/issues/733)) ([9ad2e47](https://github.com/iamkun/dayjs/commit/9ad2e47e0569b23991bb0d5578f49c792c12df08))
|
||||
* Update locale (zh-cn) ([#706](https://github.com/iamkun/dayjs/issues/706)) ([e31e544](https://github.com/iamkun/dayjs/commit/e31e54414fb90e1f54da13a117748ba37f52645d))
|
||||
* Update locale (zh-cn) meridiem ([#735](https://github.com/iamkun/dayjs/issues/735)) ([15d1b81](https://github.com/iamkun/dayjs/commit/15d1b813e7faf5a1f9d1ea6fc673fd27ac49d8b1))
|
||||
* Update LocaleData plugin to support dayjs().longDateFormat() ([#734](https://github.com/iamkun/dayjs/issues/734)) ([aa0f210](https://github.com/iamkun/dayjs/commit/aa0f210a1e3c4f6aba61c3b96f9eb445b43a33f0)), closes [#680](https://github.com/iamkun/dayjs/issues/680)
|
||||
* Update Mongolian (mn) locale relativeTime ([#753](https://github.com/iamkun/dayjs/issues/753)) ([6d51435](https://github.com/iamkun/dayjs/commit/6d51435092c0c94d8e50256d3f0f058cdd15febe))
|
||||
* Update Swedish locale (sv) fix ordinal error ([#745](https://github.com/iamkun/dayjs/issues/745)) ([49670d5](https://github.com/iamkun/dayjs/commit/49670d5ae31e4e21636cc5a8bfe35fef0f6d9e4a)), closes [#743](https://github.com/iamkun/dayjs/issues/743)
|
||||
|
||||
## [1.8.17](https://github.com/iamkun/dayjs/compare/v1.8.16...v1.8.17) (2019-11-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Fix set utcOffset in utc mode ([d148115](https://github.com/iamkun/dayjs/commit/d148115dad8f1a5afc0a64e9b8163dfeba4616b6))
|
||||
* Update advancedFormat plugin to support w ww wo week tokens … ([#678](https://github.com/iamkun/dayjs/issues/678)) ([26cfa63](https://github.com/iamkun/dayjs/commit/26cfa63a524b803f7966dac5464f9cbf8f63387e)), closes [#676](https://github.com/iamkun/dayjs/issues/676)
|
||||
* Update ka locale weekdays ([f8ca3d4](https://github.com/iamkun/dayjs/commit/f8ca3d4ba1d3cbe41613d3909c0627935a51a0c4))
|
||||
* Update nb locale ([#679](https://github.com/iamkun/dayjs/issues/679)) ([1063b0e](https://github.com/iamkun/dayjs/commit/1063b0e1b5c19a1354d233cc0f21438e7073233a))
|
||||
* Update Polish locale (pl)([#713](https://github.com/iamkun/dayjs/issues/713)) ([30d2f02](https://github.com/iamkun/dayjs/commit/30d2f026b47188833a4f44fee4bab52467d4a718))
|
||||
* Update Ukrainian locale (uk) ([#710](https://github.com/iamkun/dayjs/issues/710)) ([360161c](https://github.com/iamkun/dayjs/commit/360161cac75f597fdd51d9d1ff138601282a1b4b))
|
||||
* UTC plugin set utcOffset value ([#668](https://github.com/iamkun/dayjs/issues/668)) ([8877883](https://github.com/iamkun/dayjs/commit/88778838e71dd309e79cd1a8094d5bea36ca3390))
|
||||
|
||||
## [1.8.16](https://github.com/iamkun/dayjs/compare/v1.8.15...v1.8.16) (2019-08-27)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Fix relativeTime Plugin .FromNow() result error in UTC mode ([a385d5c](https://github.com/iamkun/dayjs/commit/a385d5c))
|
||||
* Handle locale in WeekOfYear plugin ([#658](https://github.com/iamkun/dayjs/issues/658)) ([0e45b0a](https://github.com/iamkun/dayjs/commit/0e45b0a))
|
||||
* LocaleData plugin returns all months and weekdays data when pas no argument ([#645](https://github.com/iamkun/dayjs/issues/645)) ([95e70b4](https://github.com/iamkun/dayjs/commit/95e70b4))
|
||||
* Return null in toJSON if not valid ([#633](https://github.com/iamkun/dayjs/issues/633)) ([19affc8](https://github.com/iamkun/dayjs/commit/19affc8))
|
||||
* Update Danish (da) locale ([#626](https://github.com/iamkun/dayjs/issues/626)) ([ac2ec77](https://github.com/iamkun/dayjs/commit/ac2ec77))
|
||||
* Update Korean locale meridiem ([#642](https://github.com/iamkun/dayjs/issues/642)) ([b457146](https://github.com/iamkun/dayjs/commit/b457146))
|
||||
* update Occitan locale Catalan locale ([#630](https://github.com/iamkun/dayjs/issues/630)) ([fef135e](https://github.com/iamkun/dayjs/commit/fef135e))
|
||||
* update pt-br locale ([#628](https://github.com/iamkun/dayjs/issues/628)) ([ccf596d](https://github.com/iamkun/dayjs/commit/ccf596d))
|
||||
* Update weekdaysShort to some locale files ([#643](https://github.com/iamkun/dayjs/issues/643)) ([cc1f15f](https://github.com/iamkun/dayjs/commit/cc1f15f))
|
||||
|
||||
## [1.8.15](https://github.com/iamkun/dayjs/compare/v1.8.14...v1.8.15) (2019-07-08)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Fix dayjs.locale() returns current global locale ([#602](https://github.com/iamkun/dayjs/issues/602)) ([790cd1a](https://github.com/iamkun/dayjs/commit/790cd1a))
|
||||
* Fix incorrect Thai locale translation of July ([#607](https://github.com/iamkun/dayjs/issues/607)) ([43cbfd3](https://github.com/iamkun/dayjs/commit/43cbfd3))
|
||||
* Lowercase french locale months and weekdays ([#615](https://github.com/iamkun/dayjs/issues/615)) ([e5a257c](https://github.com/iamkun/dayjs/commit/e5a257c))
|
||||
* Type - Export Ls object to query all available locales ([#623](https://github.com/iamkun/dayjs/issues/623)) ([f6bfae0](https://github.com/iamkun/dayjs/commit/f6bfae0))
|
||||
* Update nb (Norsk Bokmål) locale ([#604](https://github.com/iamkun/dayjs/issues/604)) ([907f5c9](https://github.com/iamkun/dayjs/commit/907f5c9))
|
||||
* Update types of `.diff` API ([#617](https://github.com/iamkun/dayjs/issues/617)) ([f0f43d2](https://github.com/iamkun/dayjs/commit/f0f43d2))
|
||||
|
||||
## [1.8.14](https://github.com/iamkun/dayjs/compare/v1.8.13...v1.8.14) (2019-05-07)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Fix `.format` API returns UTC offset when value is 0 bug ([b254964](https://github.com/iamkun/dayjs/commit/b254964))
|
||||
* Fix QuarterOfYear plugin bug ([#591](https://github.com/iamkun/dayjs/issues/591)) ([434f774](https://github.com/iamkun/dayjs/commit/434f774))
|
||||
* Fix UTC plugin add day DST bug ([#590](https://github.com/iamkun/dayjs/issues/590)) ([86cd839](https://github.com/iamkun/dayjs/commit/86cd839))
|
||||
|
||||
## [1.8.13](https://github.com/iamkun/dayjs/compare/v1.8.12...v1.8.13) (2019-04-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add missing relativeTime and formats for some locales ([#560](https://github.com/iamkun/dayjs/issues/560)) ([96b917e](https://github.com/iamkun/dayjs/commit/96b917e))
|
||||
* Add weekday (locale aware day of the week) plugin ([#569](https://github.com/iamkun/dayjs/issues/569)) ([9007cc5](https://github.com/iamkun/dayjs/commit/9007cc5)), closes [#559](https://github.com/iamkun/dayjs/issues/559)
|
||||
* Allow customizing "am" / "pm" strings with locale meridiem function ([#580](https://github.com/iamkun/dayjs/issues/580)) ([576e93e](https://github.com/iamkun/dayjs/commit/576e93e)), closes [#578](https://github.com/iamkun/dayjs/issues/578)
|
||||
* Fix `.add` day/week decimal rouding bug ([800f6c9](https://github.com/iamkun/dayjs/commit/800f6c9))
|
||||
* Fix `.diff` type definition error ([#565](https://github.com/iamkun/dayjs/issues/565)) ([c4921ae](https://github.com/iamkun/dayjs/commit/c4921ae)), closes [#561](https://github.com/iamkun/dayjs/issues/561)
|
||||
* Fix CustomParseFormat plugin bug ([#568](https://github.com/iamkun/dayjs/issues/568)) ([1f5a9db](https://github.com/iamkun/dayjs/commit/1f5a9db)), closes [#555](https://github.com/iamkun/dayjs/issues/555)
|
||||
* Fix relativeTime plugin Math.round bug ([40bea40](https://github.com/iamkun/dayjs/commit/40bea40))
|
||||
* skip square brackets in buddhistEra, advancedFormat plugins ([#556](https://github.com/iamkun/dayjs/issues/556)) ([9279718](https://github.com/iamkun/dayjs/commit/9279718)), closes [#554](https://github.com/iamkun/dayjs/issues/554)
|
||||
* Update Indonesian locale([#574](https://github.com/iamkun/dayjs/issues/574)) ([0aa7143](https://github.com/iamkun/dayjs/commit/0aa7143))
|
||||
* Update locale month to support both array and function ([#581](https://github.com/iamkun/dayjs/issues/581)) ([b6599d3](https://github.com/iamkun/dayjs/commit/b6599d3))
|
||||
* Update LocalizedFormat plugin lowercase formats logic ([#557](https://github.com/iamkun/dayjs/issues/557)) ([d409304](https://github.com/iamkun/dayjs/commit/d409304))
|
||||
|
||||
## [1.8.12](https://github.com/iamkun/dayjs/compare/v1.8.11...v1.8.12) (2019-04-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add .get API ([7318797](https://github.com/iamkun/dayjs/commit/7318797))
|
||||
* Add 79 locales ([#541](https://github.com/iamkun/dayjs/issues/541)) ([f75a125](https://github.com/iamkun/dayjs/commit/f75a125))
|
||||
* Add Calendar plugin ([d1b9cf9](https://github.com/iamkun/dayjs/commit/d1b9cf9))
|
||||
* Add isoWeeksInYear plugin ([2db8631](https://github.com/iamkun/dayjs/commit/2db8631))
|
||||
* Add Occitan (oc-lnc) locale file ([#551](https://github.com/iamkun/dayjs/issues/551)) ([c30b715](https://github.com/iamkun/dayjs/commit/c30b715))
|
||||
* Add plugin minMax to sopport .max .min ([2870a23](https://github.com/iamkun/dayjs/commit/2870a23))
|
||||
* Fix set Month Year error in last day of the month ([d058f4a](https://github.com/iamkun/dayjs/commit/d058f4a))
|
||||
* Update ko locale weekdaysShort ([#543](https://github.com/iamkun/dayjs/issues/543)) ([317fd3e](https://github.com/iamkun/dayjs/commit/317fd3e))
|
||||
* Update localizedFormat plugin to support lowercase localizable formats (l, ll, lll, llll) ([#546](https://github.com/iamkun/dayjs/issues/546)) ([f2b5ebf](https://github.com/iamkun/dayjs/commit/f2b5ebf))
|
||||
|
||||
## [1.8.11](https://github.com/iamkun/dayjs/compare/v1.8.10...v1.8.11) (2019-03-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add .add('quarter') .startOf('quarter') through plugin quarterOfYear ([dde39e9](https://github.com/iamkun/dayjs/commit/dde39e9)), closes [#537](https://github.com/iamkun/dayjs/issues/537) [#531](https://github.com/iamkun/dayjs/issues/531)
|
||||
* Add locale support for Azerbaijani language (az) ([#535](https://github.com/iamkun/dayjs/issues/535)) ([eeb20fa](https://github.com/iamkun/dayjs/commit/eeb20fa))
|
||||
* Correct typescript definition `add` ([22a249c](https://github.com/iamkun/dayjs/commit/22a249c)), closes [#531](https://github.com/iamkun/dayjs/issues/531)
|
||||
* Fix CustomParseFormat plugin formatting bug ([#536](https://github.com/iamkun/dayjs/issues/536)) ([8578546](https://github.com/iamkun/dayjs/commit/8578546)), closes [#533](https://github.com/iamkun/dayjs/issues/533)
|
||||
* Update pt locale ([#538](https://github.com/iamkun/dayjs/issues/538)) ([1ac9e1e](https://github.com/iamkun/dayjs/commit/1ac9e1e))
|
||||
|
||||
## [1.8.10](https://github.com/iamkun/dayjs/compare/v1.8.9...v1.8.10) (2019-03-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **locale:** Add nepali (ne) locale ([#524](https://github.com/iamkun/dayjs/issues/524)) ([bdbec01](https://github.com/iamkun/dayjs/commit/bdbec01))
|
||||
* Add WeekYear plugin ([a892608](https://github.com/iamkun/dayjs/commit/a892608))
|
||||
* API .locale() with no argument should return current locale name string ([8d63d88](https://github.com/iamkun/dayjs/commit/8d63d88))
|
||||
* CustomParseFormat correct parse HH:mm:ss with only one digit like 0:12:10 ([600d547](https://github.com/iamkun/dayjs/commit/600d547))
|
||||
* CustomParseFormat plugin parse Do format string ([bf27fda](https://github.com/iamkun/dayjs/commit/bf27fda)), closes [#522](https://github.com/iamkun/dayjs/issues/522)
|
||||
* Expand setters like .year(2000) .hour(12) ([ac532a0](https://github.com/iamkun/dayjs/commit/ac532a0))
|
||||
* Move toObject, toArray API to separate plugin from core ([40a3431](https://github.com/iamkun/dayjs/commit/40a3431))
|
||||
|
||||
## [1.8.9](https://github.com/iamkun/dayjs/compare/v1.8.8...v1.8.9) (2019-03-06)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Add UTC mode with UTC plugin ([#517](https://github.com/iamkun/dayjs/issues/517)) ([caf335c](https://github.com/iamkun/dayjs/commit/caf335c))
|
||||
|
||||
> For plugin developers: Please note, we have changed the name of some method in `Utils` in order to reduce the file size. ([#517](https://github.com/iamkun/dayjs/issues/517)) ([detail](https://github.com/iamkun/dayjs/pull/517/files#diff-2b4ca49d4bb0a774c4d4c1672d7aa781R46))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add locale de-AT ([#515](https://github.com/iamkun/dayjs/issues/515)) ([d93f7b6](https://github.com/iamkun/dayjs/commit/d93f7b6))
|
||||
* Add locale zh-hk ([#516](https://github.com/iamkun/dayjs/issues/516)) ([5fc05a6](https://github.com/iamkun/dayjs/commit/5fc05a6))
|
||||
|
||||
## [1.8.8](https://github.com/iamkun/dayjs/compare/v1.8.7...v1.8.8) (2019-02-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Update relativeTime plugin type definition ([de56f2c](https://github.com/iamkun/dayjs/commit/de56f2c))
|
||||
|
||||
## [1.8.7](https://github.com/iamkun/dayjs/compare/v1.8.6...v1.8.7) (2019-02-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add plugin type definitions ([#418](https://github.com/iamkun/dayjs/issues/418)) ([361d437](https://github.com/iamkun/dayjs/commit/361d437))
|
||||
* Add Swahili locale ([#508](https://github.com/iamkun/dayjs/issues/508)) ([b9cee84](https://github.com/iamkun/dayjs/commit/b9cee84))
|
||||
* Parse month string 'MMMM MMM (February, Feb)' in customParseFormat ([#457](https://github.com/iamkun/dayjs/issues/457)) ([f343206](https://github.com/iamkun/dayjs/commit/f343206))
|
||||
* Update declaration file .diff .isBefore .isSame .isAfter ([#496](https://github.com/iamkun/dayjs/issues/496)) ([4523275](https://github.com/iamkun/dayjs/commit/4523275))
|
||||
* Word orders corrections for locale 'fa' ([#491](https://github.com/iamkun/dayjs/issues/491)) ([56050c2](https://github.com/iamkun/dayjs/commit/56050c2))
|
||||
|
||||
## [1.8.6](https://github.com/iamkun/dayjs/compare/v1.8.5...v1.8.6) (2019-02-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add Bahasa Melayu (Malaysia) locale ([#485](https://github.com/iamkun/dayjs/issues/485)) ([cb208b0](https://github.com/iamkun/dayjs/commit/cb208b0))
|
||||
* Copy & export built-in en locale to /locale folder as a separate file ([a7e05e0](https://github.com/iamkun/dayjs/commit/a7e05e0))
|
||||
* Fix bug in customParseFormat plugin while month(MM) is '01' ([9884ca5](https://github.com/iamkun/dayjs/commit/9884ca5)), closes [#494](https://github.com/iamkun/dayjs/issues/494)
|
||||
* Fix startOf week bug while week start is not Sunday ([5eaf77b](https://github.com/iamkun/dayjs/commit/5eaf77b))
|
||||
* Implemented isBetween inclusivity ([#464](https://github.com/iamkun/dayjs/issues/464)) ([af2f4f1](https://github.com/iamkun/dayjs/commit/af2f4f1))
|
||||
* Update Swedish and Finnish locales ([#488](https://github.com/iamkun/dayjs/issues/488)) ([f142082](https://github.com/iamkun/dayjs/commit/f142082))
|
||||
* Fix commonJS require ES Module bug in webpack4 ([23f9f3d](https://github.com/iamkun/dayjs/commit/23f9f3d)), check [#492](https://github.com/iamkun/dayjs/issues/492)
|
||||
|
||||
> Get access to ESM code with `import dayjs from 'dayjs/esm'`
|
||||
|
||||
## [1.8.5](https://github.com/iamkun/dayjs/compare/v1.8.4...v1.8.5) (2019-02-07)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add en-gb locale ([#478](https://github.com/iamkun/dayjs/issues/478)) ([508c3a7](https://github.com/iamkun/dayjs/commit/508c3a7))
|
||||
* **module:** transpile everything except ES6 modules in the 'module' entrypoint ([#477](https://github.com/iamkun/dayjs/issues/477)) ([#480](https://github.com/iamkun/dayjs/issues/480)) ([#482](https://github.com/iamkun/dayjs/issues/482)) ([767017d](https://github.com/iamkun/dayjs/commit/767017d))
|
||||
* update customParseFormat plugin support hh:mm ([54947cc](https://github.com/iamkun/dayjs/commit/54947cc)), closes [#484](https://github.com/iamkun/dayjs/issues/484)
|
||||
* Update module in package.json ([5c5a7a0](https://github.com/iamkun/dayjs/commit/5c5a7a0))
|
||||
|
||||
## [1.8.4](https://github.com/iamkun/dayjs/compare/v1.8.3...v1.8.4) (2019-02-05)
|
||||
|
||||
* Allow set start day of week in locale && Allow set week in weekOfYear plugin ([1295591](https://github.com/iamkun/dayjs/commit/1295591))
|
||||
### Bug Fixes
|
||||
* update all locale files with correct week start ([5b03412](https://github.com/iamkun/dayjs/commit/5b03412))
|
||||
* update es es-do locale adding weekStart && update weekStart test ([66e42ec](https://github.com/iamkun/dayjs/commit/66e42ec))
|
||||
* Revert default export ([b00da1b](https://github.com/iamkun/dayjs/commit/b00da1b))
|
||||
|
||||
## [1.8.3](https://github.com/iamkun/dayjs/compare/v1.8.2...v1.8.3) (2019-02-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix ios safari YYYY-MM-DD HH:mm parse BUG ([e02ae82](https://github.com/iamkun/dayjs/commit/e02ae82)), closes [#254](https://github.com/iamkun/dayjs/issues/254)
|
||||
|
||||
## [1.8.2](https://github.com/iamkun/dayjs/compare/v1.8.1...v1.8.2) (2019-02-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add missing czech language locale ([#461](https://github.com/iamkun/dayjs/issues/461)) ([7e04004](https://github.com/iamkun/dayjs/commit/7e04004))
|
||||
* Add utcOffset api method and fix calculating diff error in DST ([#453](https://github.com/iamkun/dayjs/issues/453)) ([ce2e30e](https://github.com/iamkun/dayjs/commit/ce2e30e))
|
||||
* Fix it locale error ([#458](https://github.com/iamkun/dayjs/issues/458)) ([f6d9a64](https://github.com/iamkun/dayjs/commit/f6d9a64))
|
||||
* Add DayOfYear plugin (#454)
|
||||
* Fix es locale monthsShort error
|
||||
|
||||
## [1.8.1](https://github.com/iamkun/dayjs/compare/v1.8.0...v1.8.1) (2019-02-02)
|
||||
|
||||
* Add LocalizedFormat plugin supplying format like LTS, LT, LLLL
|
||||
|
||||
* <del>update declaration File with default export (#278)</del>
|
||||
> <del>From v1.8.1, in TypeScript Project, just `import from dayjs from 'dayjs'`</del>
|
||||
* add ES2015 module support (#451)
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* **format:** reuse matches instead of created when replacing ([#441](https://github.com/iamkun/dayjs/issues/441)) ([10b79d8](https://github.com/iamkun/dayjs/commit/10b79d8))
|
||||
|
||||
# [1.8.0](https://github.com/iamkun/dayjs/compare/v1.7.8...v1.8.0) (2019-01-14)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add CustomParseFormat plugin and QuarterOfYear plugin ([#450](https://github.com/iamkun/dayjs/issues/450)) ([8f6f63c](https://github.com/iamkun/dayjs/commit/8f6f63c))
|
||||
|
||||
## [1.7.8](https://github.com/iamkun/dayjs/compare/v1.7.7...v1.7.8) (2018-12-13)
|
||||
|
||||
|
||||
### Feature
|
||||
|
||||
* update isSame isBefore isAfter supports units ([fd65464](https://github.com/iamkun/dayjs/commit/fd65464))
|
||||
|
||||
* add greek lithuanian locales
|
||||
|
||||
## [1.7.7](https://github.com/iamkun/dayjs/compare/v1.7.6...v1.7.7) (2018-09-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **DST:** fix daylight saving time DST bug && add test ([#354](https://github.com/iamkun/dayjs/issues/354)) ([6fca6d5](https://github.com/iamkun/dayjs/commit/6fca6d5))
|
||||
|
||||
## [1.7.6](https://github.com/iamkun/dayjs/compare/v1.7.5...v1.7.6) (2018-09-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **add dayjs.unix:** add dayjs.unix to parse timestamp in seconds && locale update ([5711c5e](https://github.com/iamkun/dayjs/commit/5711c5e))
|
||||
|
||||
## [1.7.5](https://github.com/iamkun/dayjs/compare/v1.7.4...v1.7.5) (2018-08-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add isBetween API & update ([b5fc3d1](https://github.com/iamkun/dayjs/commit/b5fc3d1))
|
||||
|
||||
## [1.7.4](https://github.com/iamkun/dayjs/compare/v1.7.3...v1.7.4) (2018-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update set week logic ([60b6325](https://github.com/iamkun/dayjs/commit/60b6325)), closes [#276](https://github.com/iamkun/dayjs/issues/276)
|
||||
|
||||
## [1.7.3](https://github.com/iamkun/dayjs/compare/v1.7.2...v1.7.3) (2018-07-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **locale-nl:** set correct weekdays and months ([6d089d7](https://github.com/iamkun/dayjs/commit/6d089d7))
|
||||
|
||||
## [1.7.2](https://github.com/iamkun/dayjs/compare/v1.7.1...v1.7.2) (2018-07-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* DEPRECATED isLeapYear, use IsLeapYear plugin instead ([e2e5116](https://github.com/iamkun/dayjs/commit/e2e5116))
|
||||
|
||||
## [1.7.1](https://github.com/iamkun/dayjs/compare/v1.7.0...v1.7.1) (2018-07-03)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix week() error near the end of the year ([fa03689](https://github.com/iamkun/dayjs/commit/fa03689))
|
||||
|
||||
# [1.7.0](https://github.com/iamkun/dayjs/compare/v1.6.10...v1.7.0) (2018-07-02)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Added method `.week()` to retrieve week of the year ([e1c1b1c](https://github.com/iamkun/dayjs/commit/e1c1b1c))
|
||||
* Updated Japanese locae
|
||||
|
||||
## [1.6.10](https://github.com/iamkun/dayjs/compare/v1.6.9...v1.6.10) (2018-06-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add relative locales to russian language ([c7e9898](https://github.com/iamkun/dayjs/commit/c7e9898)), closes [#256](https://github.com/iamkun/dayjs/issues/256)
|
||||
|
||||
## [1.6.9](https://github.com/iamkun/dayjs/compare/v1.6.8...v1.6.9) (2018-06-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add isDayjs => boolean API ([6227c8b](https://github.com/iamkun/dayjs/commit/6227c8b))
|
||||
|
||||
## [1.6.8](https://github.com/iamkun/dayjs/compare/v1.6.7...v1.6.8) (2018-06-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix Advanced format bug in zh-cn ([0c07874](https://github.com/iamkun/dayjs/commit/0c07874)), closes [#242](https://github.com/iamkun/dayjs/issues/242)
|
||||
|
||||
## [1.6.7](https://github.com/iamkun/dayjs/compare/v1.6.6...v1.6.7) (2018-06-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix id locale ([1ebbeb8](https://github.com/iamkun/dayjs/commit/1ebbeb8)), closes [#234](https://github.com/iamkun/dayjs/issues/234)
|
||||
|
||||
<a name="1.6.6"></a>
|
||||
## [1.6.6](https://github.com/iamkun/dayjs/compare/v1.6.5...v1.6.6) (2018-06-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* format API update and locale file update ([5ca48f0](https://github.com/iamkun/dayjs/commit/5ca48f0)), closes [#228](https://github.com/iamkun/dayjs/issues/228)
|
||||
|
||||
<a name="1.6.5"></a>
|
||||
## [1.6.5](https://github.com/iamkun/dayjs/compare/v1.6.4...v1.6.5) (2018-05-31)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bugfix, utils update and locale file update ([ebcb6d5](https://github.com/iamkun/dayjs/commit/ebcb6d5)), closes [#214](https://github.com/iamkun/dayjs/issues/214)
|
||||
|
||||
<a name="1.6.4"></a>
|
||||
## [1.6.4](https://github.com/iamkun/dayjs/compare/v1.6.3...v1.6.4) (2018-05-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add RelativeTime plugin and locale file update ([c1fbbca](https://github.com/iamkun/dayjs/commit/c1fbbca)), closes [#198](https://github.com/iamkun/dayjs/issues/198)
|
||||
|
||||
<a name="1.6.3"></a>
|
||||
## [1.6.3](https://github.com/iamkun/dayjs/compare/v1.6.2...v1.6.3) (2018-05-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Changing locales locally is immutable from this release ([2cce729](https://github.com/iamkun/dayjs/commit/2cce729)), closes [#182](https://github.com/iamkun/dayjs/issues/182)
|
||||
* instance locale change should be immutable ([84597c9](https://github.com/iamkun/dayjs/commit/84597c9))
|
||||
* Add more locales
|
||||
* english ordinal fix
|
||||
|
||||
<a name="1.6.2"></a>
|
||||
## [1.6.2](https://github.com/iamkun/dayjs/compare/v1.6.1...v1.6.2) (2018-05-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* change-log update && test new npm release ([aa49cba](https://github.com/iamkun/dayjs/commit/aa49cba)), closes [#163](https://github.com/iamkun/dayjs/issues/163)
|
||||
|
||||
<a name="1.6.1"></a>
|
||||
## [1.6.1](https://github.com/iamkun/dayjs/compare/v1.6.0...v1.6.1) (2018-05-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add German, Brazilian Portuguese locales
|
||||
* add() & parse() bug fix & add locale de, pt-br ([bf1331e](https://github.com/iamkun/dayjs/commit/bf1331e))
|
||||
|
||||
<a name="1.6.0"></a>
|
||||
# [1.6.0](https://github.com/iamkun/dayjs/compare/v1.5.24...v1.6.0) (2018-05-15)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Locale && Plugin ([2342c55](https://github.com/iamkun/dayjs/commit/2342c55)), closes [#141](https://github.com/iamkun/dayjs/issues/141)
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018-present, iamkun
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
English | [简体中文](./docs/zh-cn/README.zh-CN.md) | [日本語](./docs/ja/README-ja.md) | [Português Brasileiro](./docs/pt-br/README-pt-br.md) | [한국어](./docs/ko/README-ko.md) | [Español (España)](./docs/es-es/README-es-es.md)
|
||||
|
||||
<p align="center"><a href="#" target="_blank" rel="noopener noreferrer"><img width="550"
|
||||
src="https://user-images.githubusercontent.com/17680888/39081119-3057bbe2-456e-11e8-862c-646133ad4b43.png"
|
||||
alt="Day.js"></a></p>
|
||||
<p align="center">Fast <b>2kB</b> alternative to Moment.js with the same modern API</p>
|
||||
<br>
|
||||
<p align="center">
|
||||
<a href="https://unpkg.com/dayjs/dayjs.min.js"><img
|
||||
src="http://img.badgesize.io/https://unpkg.com/dayjs/dayjs.min.js?compression=gzip&style=flat-square"
|
||||
alt="Gzip Size"></a>
|
||||
<a href="https://www.npmjs.com/package/dayjs"><img src="https://img.shields.io/npm/v/dayjs.svg?style=flat-square&colorB=51C838"
|
||||
alt="NPM Version"></a>
|
||||
<a href="https://travis-ci.org/iamkun/dayjs"><img
|
||||
src="https://img.shields.io/travis/iamkun/dayjs/master.svg?style=flat-square" alt="Build Status"></a>
|
||||
<a href="https://codecov.io/gh/iamkun/dayjs"><img
|
||||
src="https://img.shields.io/codecov/c/github/iamkun/dayjs/master.svg?style=flat-square" alt="Codecov"></a>
|
||||
<a href="https://github.com/iamkun/dayjs/blob/master/LICENSE"><img
|
||||
src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="License"></a>
|
||||
<br>
|
||||
<a href="https://saucelabs.com/u/dayjs">
|
||||
<img width="750" src="https://user-images.githubusercontent.com/17680888/40040137-8e3323a6-584b-11e8-9dba-bbe577ee8a7b.png" alt="Sauce Test Status">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
> Day.js is a minimalist JavaScript library that parses, validates, manipulates, and displays dates and times for modern browsers with a largely Moment.js-compatible API. If you use Moment.js, you already know how to use Day.js.
|
||||
|
||||
```js
|
||||
dayjs().startOf('month').add(1, 'day').set('year', 2018).format('YYYY-MM-DD HH:mm:ss');
|
||||
```
|
||||
|
||||
* 🕒 Familiar Moment.js API & patterns
|
||||
* 💪 Immutable
|
||||
* 🔥 Chainable
|
||||
* 🌐 I18n support
|
||||
* 📦 2kb mini library
|
||||
* 👫 All browsers supported
|
||||
|
||||
---
|
||||
|
||||
## Getting Started
|
||||
|
||||
### Documentation
|
||||
|
||||
You can find for more details, API, and other docs on [day.js.org](https://day.js.org/) website.
|
||||
|
||||
### Installation
|
||||
|
||||
```console
|
||||
npm install dayjs --save
|
||||
```
|
||||
|
||||
📚[Installation Guide](https://day.js.org/docs/en/installation/installation)
|
||||
|
||||
### API
|
||||
|
||||
It's easy to use Day.js APIs to parse, validate, manipulate, and display dates and times.
|
||||
|
||||
```javascript
|
||||
dayjs('2018-08-08') // parse
|
||||
|
||||
dayjs().format('{YYYY} MM-DDTHH:mm:ss SSS [Z] A') // display
|
||||
|
||||
dayjs().set('month', 3).month() // get & set
|
||||
|
||||
dayjs().add(1, 'year') // manipulate
|
||||
|
||||
dayjs().isBefore(dayjs()) // query
|
||||
```
|
||||
|
||||
📚[API Reference](https://day.js.org/docs/en/parse/parse)
|
||||
|
||||
### I18n
|
||||
|
||||
Day.js has great support for internationalization.
|
||||
|
||||
But none of them will be included in your build unless you use it.
|
||||
|
||||
```javascript
|
||||
import 'dayjs/locale/es' // load on demand
|
||||
|
||||
dayjs.locale('es') // use Spanish locale globally
|
||||
|
||||
dayjs('2018-05-05').locale('zh-cn').format() // use Chinese Simplified locale in a specific instance
|
||||
```
|
||||
📚[Internationalization](https://day.js.org/docs/en/i18n/i18n)
|
||||
|
||||
### Plugin
|
||||
|
||||
A plugin is an independent module that can be added to Day.js to extend functionality or add new features.
|
||||
|
||||
```javascript
|
||||
import advancedFormat from 'dayjs/plugin/advancedFormat' // load on demand
|
||||
|
||||
dayjs.extend(advancedFormat) // use plugin
|
||||
|
||||
dayjs().format('Q Do k kk X x') // more available formats
|
||||
```
|
||||
|
||||
📚[Plugin List](https://day.js.org/docs/en/plugin/plugin)
|
||||
|
||||
## Sponsors
|
||||
|
||||
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/dayjs#sponsor)]
|
||||
|
||||
<a href="https://opencollective.com/dayjs/sponsor/0/website" target="_blank"><img src="https://opencollective.com/dayjs/sponsor/0/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/dayjs/sponsor/1/website" target="_blank"><img src="https://opencollective.com/dayjs/sponsor/1/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/dayjs/sponsor/2/website" target="_blank"><img src="https://opencollective.com/dayjs/sponsor/2/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/dayjs/sponsor/3/website" target="_blank"><img src="https://opencollective.com/dayjs/sponsor/3/avatar.svg"></a>
|
||||
|
||||
## Contributors
|
||||
|
||||
This project exists thanks to all the people who contribute.
|
||||
|
||||
Please give us a 💖 star 💖 to support us. Thank you.
|
||||
|
||||
And thank you to all our backers! 🙏
|
||||
|
||||
<a href="https://opencollective.com/dayjs/backer/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/dayjs/backer/0/avatar.svg?requireActive=false"></a>
|
||||
<a href="https://opencollective.com/dayjs/backer/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/dayjs/backer/1/avatar.svg?requireActive=false"></a>
|
||||
<a href="https://opencollective.com/dayjs/backer/2/website?requireActive=false" target="_blank"><img src="https://opencollective.com/dayjs/backer/2/avatar.svg?requireActive=false"></a>
|
||||
<a href="https://opencollective.com/dayjs/backer/3/website?requireActive=false" target="_blank"><img src="https://opencollective.com/dayjs/backer/3/avatar.svg?requireActive=false"></a>
|
||||
<a href="https://opencollective.com/dayjs#backers" target="_blank"><img src="https://opencollective.com/dayjs/contributors.svg?width=890" /></a>
|
||||
|
||||
## License
|
||||
|
||||
Day.js is licensed under a [MIT License](./LICENSE).
|
||||
+1
File diff suppressed because one or more lines are too long
+25
@@ -0,0 +1,25 @@
|
||||
export var SECONDS_A_MINUTE = 60;
|
||||
export var SECONDS_A_HOUR = SECONDS_A_MINUTE * 60;
|
||||
export var SECONDS_A_DAY = SECONDS_A_HOUR * 24;
|
||||
export var SECONDS_A_WEEK = SECONDS_A_DAY * 7;
|
||||
export var MILLISECONDS_A_SECOND = 1e3;
|
||||
export var MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND;
|
||||
export var MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND;
|
||||
export var MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
|
||||
export var MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND; // English locales
|
||||
|
||||
export var MS = 'millisecond';
|
||||
export var S = 'second';
|
||||
export var MIN = 'minute';
|
||||
export var H = 'hour';
|
||||
export var D = 'day';
|
||||
export var W = 'week';
|
||||
export var M = 'month';
|
||||
export var Q = 'quarter';
|
||||
export var Y = 'year';
|
||||
export var DATE = 'date';
|
||||
export var FORMAT_DEFAULT = 'YYYY-MM-DDTHH:mm:ssZ';
|
||||
export var INVALID_DATE_STRING = 'Invalid Date'; // regex
|
||||
|
||||
export var REGEX_PARSE = /^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/;
|
||||
export var REGEX_FORMAT = /\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
|
||||
+451
@@ -0,0 +1,451 @@
|
||||
import * as C from './constant';
|
||||
import U from './utils';
|
||||
import en from './locale/en';
|
||||
var L = 'en'; // global locale
|
||||
|
||||
var Ls = {}; // global loaded locale
|
||||
|
||||
Ls[L] = en;
|
||||
|
||||
var isDayjs = function isDayjs(d) {
|
||||
return d instanceof Dayjs;
|
||||
}; // eslint-disable-line no-use-before-define
|
||||
|
||||
|
||||
var parseLocale = function parseLocale(preset, object, isLocal) {
|
||||
var l;
|
||||
if (!preset) return L;
|
||||
|
||||
if (typeof preset === 'string') {
|
||||
if (Ls[preset]) {
|
||||
l = preset;
|
||||
}
|
||||
|
||||
if (object) {
|
||||
Ls[preset] = object;
|
||||
l = preset;
|
||||
}
|
||||
} else {
|
||||
var name = preset.name;
|
||||
Ls[name] = preset;
|
||||
l = name;
|
||||
}
|
||||
|
||||
if (!isLocal && l) L = l;
|
||||
return l || !isLocal && L;
|
||||
};
|
||||
|
||||
var dayjs = function dayjs(date, c, pl) {
|
||||
if (isDayjs(date)) {
|
||||
return date.clone();
|
||||
} // eslint-disable-next-line no-nested-ternary
|
||||
|
||||
|
||||
var cfg = c ? typeof c === 'string' ? {
|
||||
format: c,
|
||||
pl: pl
|
||||
} : c : {};
|
||||
cfg.date = date;
|
||||
return new Dayjs(cfg); // eslint-disable-line no-use-before-define
|
||||
};
|
||||
|
||||
var wrapper = function wrapper(date, instance) {
|
||||
return dayjs(date, {
|
||||
locale: instance.$L,
|
||||
utc: instance.$u,
|
||||
$offset: instance.$offset // todo: refactor; do not use this.$offset in you code
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
var Utils = U; // for plugin use
|
||||
|
||||
Utils.l = parseLocale;
|
||||
Utils.i = isDayjs;
|
||||
Utils.w = wrapper;
|
||||
|
||||
var parseDate = function parseDate(cfg) {
|
||||
var date = cfg.date,
|
||||
utc = cfg.utc;
|
||||
if (date === null) return new Date(NaN); // null is invalid
|
||||
|
||||
if (Utils.u(date)) return new Date(); // today
|
||||
|
||||
if (date instanceof Date) return new Date(date);
|
||||
|
||||
if (typeof date === 'string' && !/Z$/i.test(date)) {
|
||||
var d = date.match(C.REGEX_PARSE);
|
||||
|
||||
if (d) {
|
||||
if (utc) {
|
||||
return new Date(Date.UTC(d[1], d[2] - 1, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, d[7] || 0));
|
||||
}
|
||||
|
||||
return new Date(d[1], d[2] - 1, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, d[7] || 0);
|
||||
}
|
||||
}
|
||||
|
||||
return new Date(date); // everything else
|
||||
};
|
||||
|
||||
var Dayjs =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
function Dayjs(cfg) {
|
||||
this.$L = this.$L || parseLocale(cfg.locale, null, true);
|
||||
this.parse(cfg); // for plugin
|
||||
}
|
||||
|
||||
var _proto = Dayjs.prototype;
|
||||
|
||||
_proto.parse = function parse(cfg) {
|
||||
this.$d = parseDate(cfg);
|
||||
this.init();
|
||||
};
|
||||
|
||||
_proto.init = function init() {
|
||||
var $d = this.$d;
|
||||
this.$y = $d.getFullYear();
|
||||
this.$M = $d.getMonth();
|
||||
this.$D = $d.getDate();
|
||||
this.$W = $d.getDay();
|
||||
this.$H = $d.getHours();
|
||||
this.$m = $d.getMinutes();
|
||||
this.$s = $d.getSeconds();
|
||||
this.$ms = $d.getMilliseconds();
|
||||
} // eslint-disable-next-line class-methods-use-this
|
||||
;
|
||||
|
||||
_proto.$utils = function $utils() {
|
||||
return Utils;
|
||||
};
|
||||
|
||||
_proto.isValid = function isValid() {
|
||||
return !(this.$d.toString() === C.INVALID_DATE_STRING);
|
||||
};
|
||||
|
||||
_proto.isSame = function isSame(that, units) {
|
||||
var other = dayjs(that);
|
||||
return this.startOf(units) <= other && other <= this.endOf(units);
|
||||
};
|
||||
|
||||
_proto.isAfter = function isAfter(that, units) {
|
||||
return dayjs(that) < this.startOf(units);
|
||||
};
|
||||
|
||||
_proto.isBefore = function isBefore(that, units) {
|
||||
return this.endOf(units) < dayjs(that);
|
||||
};
|
||||
|
||||
_proto.$g = function $g(input, get, set) {
|
||||
if (Utils.u(input)) return this[get];
|
||||
return this.set(set, input);
|
||||
};
|
||||
|
||||
_proto.year = function year(input) {
|
||||
return this.$g(input, '$y', C.Y);
|
||||
};
|
||||
|
||||
_proto.month = function month(input) {
|
||||
return this.$g(input, '$M', C.M);
|
||||
};
|
||||
|
||||
_proto.day = function day(input) {
|
||||
return this.$g(input, '$W', C.D);
|
||||
};
|
||||
|
||||
_proto.date = function date(input) {
|
||||
return this.$g(input, '$D', C.DATE);
|
||||
};
|
||||
|
||||
_proto.hour = function hour(input) {
|
||||
return this.$g(input, '$H', C.H);
|
||||
};
|
||||
|
||||
_proto.minute = function minute(input) {
|
||||
return this.$g(input, '$m', C.MIN);
|
||||
};
|
||||
|
||||
_proto.second = function second(input) {
|
||||
return this.$g(input, '$s', C.S);
|
||||
};
|
||||
|
||||
_proto.millisecond = function millisecond(input) {
|
||||
return this.$g(input, '$ms', C.MS);
|
||||
};
|
||||
|
||||
_proto.unix = function unix() {
|
||||
return Math.floor(this.valueOf() / 1000);
|
||||
};
|
||||
|
||||
_proto.valueOf = function valueOf() {
|
||||
// timezone(hour) * 60 * 60 * 1000 => ms
|
||||
return this.$d.getTime();
|
||||
};
|
||||
|
||||
_proto.startOf = function startOf(units, _startOf) {
|
||||
var _this = this;
|
||||
|
||||
// startOf -> endOf
|
||||
var isStartOf = !Utils.u(_startOf) ? _startOf : true;
|
||||
var unit = Utils.p(units);
|
||||
|
||||
var instanceFactory = function instanceFactory(d, m) {
|
||||
var ins = Utils.w(_this.$u ? Date.UTC(_this.$y, m, d) : new Date(_this.$y, m, d), _this);
|
||||
return isStartOf ? ins : ins.endOf(C.D);
|
||||
};
|
||||
|
||||
var instanceFactorySet = function instanceFactorySet(method, slice) {
|
||||
var argumentStart = [0, 0, 0, 0];
|
||||
var argumentEnd = [23, 59, 59, 999];
|
||||
return Utils.w(_this.toDate()[method].apply( // eslint-disable-line prefer-spread
|
||||
_this.toDate(), (isStartOf ? argumentStart : argumentEnd).slice(slice)), _this);
|
||||
};
|
||||
|
||||
var $W = this.$W,
|
||||
$M = this.$M,
|
||||
$D = this.$D;
|
||||
var utcPad = "set" + (this.$u ? 'UTC' : '');
|
||||
|
||||
switch (unit) {
|
||||
case C.Y:
|
||||
return isStartOf ? instanceFactory(1, 0) : instanceFactory(31, 11);
|
||||
|
||||
case C.M:
|
||||
return isStartOf ? instanceFactory(1, $M) : instanceFactory(0, $M + 1);
|
||||
|
||||
case C.W:
|
||||
{
|
||||
var weekStart = this.$locale().weekStart || 0;
|
||||
var gap = ($W < weekStart ? $W + 7 : $W) - weekStart;
|
||||
return instanceFactory(isStartOf ? $D - gap : $D + (6 - gap), $M);
|
||||
}
|
||||
|
||||
case C.D:
|
||||
case C.DATE:
|
||||
return instanceFactorySet(utcPad + "Hours", 0);
|
||||
|
||||
case C.H:
|
||||
return instanceFactorySet(utcPad + "Minutes", 1);
|
||||
|
||||
case C.MIN:
|
||||
return instanceFactorySet(utcPad + "Seconds", 2);
|
||||
|
||||
case C.S:
|
||||
return instanceFactorySet(utcPad + "Milliseconds", 3);
|
||||
|
||||
default:
|
||||
return this.clone();
|
||||
}
|
||||
};
|
||||
|
||||
_proto.endOf = function endOf(arg) {
|
||||
return this.startOf(arg, false);
|
||||
};
|
||||
|
||||
_proto.$set = function $set(units, _int) {
|
||||
var _C$D$C$DATE$C$M$C$Y$C;
|
||||
|
||||
// private set
|
||||
var unit = Utils.p(units);
|
||||
var utcPad = "set" + (this.$u ? 'UTC' : '');
|
||||
var name = (_C$D$C$DATE$C$M$C$Y$C = {}, _C$D$C$DATE$C$M$C$Y$C[C.D] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[C.DATE] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[C.M] = utcPad + "Month", _C$D$C$DATE$C$M$C$Y$C[C.Y] = utcPad + "FullYear", _C$D$C$DATE$C$M$C$Y$C[C.H] = utcPad + "Hours", _C$D$C$DATE$C$M$C$Y$C[C.MIN] = utcPad + "Minutes", _C$D$C$DATE$C$M$C$Y$C[C.S] = utcPad + "Seconds", _C$D$C$DATE$C$M$C$Y$C[C.MS] = utcPad + "Milliseconds", _C$D$C$DATE$C$M$C$Y$C)[unit];
|
||||
var arg = unit === C.D ? this.$D + (_int - this.$W) : _int;
|
||||
|
||||
if (unit === C.M || unit === C.Y) {
|
||||
// clone is for badMutable plugin
|
||||
var date = this.clone().set(C.DATE, 1);
|
||||
date.$d[name](arg);
|
||||
date.init();
|
||||
this.$d = date.set(C.DATE, Math.min(this.$D, date.daysInMonth())).toDate();
|
||||
} else if (name) this.$d[name](arg);
|
||||
|
||||
this.init();
|
||||
return this;
|
||||
};
|
||||
|
||||
_proto.set = function set(string, _int2) {
|
||||
return this.clone().$set(string, _int2);
|
||||
};
|
||||
|
||||
_proto.get = function get(unit) {
|
||||
return this[Utils.p(unit)]();
|
||||
};
|
||||
|
||||
_proto.add = function add(number, units) {
|
||||
var _this2 = this,
|
||||
_C$MIN$C$H$C$S$unit;
|
||||
|
||||
number = Number(number); // eslint-disable-line no-param-reassign
|
||||
|
||||
var unit = Utils.p(units);
|
||||
|
||||
var instanceFactorySet = function instanceFactorySet(n) {
|
||||
var d = dayjs(_this2);
|
||||
return Utils.w(d.date(d.date() + Math.round(n * number)), _this2);
|
||||
};
|
||||
|
||||
if (unit === C.M) {
|
||||
return this.set(C.M, this.$M + number);
|
||||
}
|
||||
|
||||
if (unit === C.Y) {
|
||||
return this.set(C.Y, this.$y + number);
|
||||
}
|
||||
|
||||
if (unit === C.D) {
|
||||
return instanceFactorySet(1);
|
||||
}
|
||||
|
||||
if (unit === C.W) {
|
||||
return instanceFactorySet(7);
|
||||
}
|
||||
|
||||
var step = (_C$MIN$C$H$C$S$unit = {}, _C$MIN$C$H$C$S$unit[C.MIN] = C.MILLISECONDS_A_MINUTE, _C$MIN$C$H$C$S$unit[C.H] = C.MILLISECONDS_A_HOUR, _C$MIN$C$H$C$S$unit[C.S] = C.MILLISECONDS_A_SECOND, _C$MIN$C$H$C$S$unit)[unit] || 1; // ms
|
||||
|
||||
var nextTimeStamp = this.$d.getTime() + number * step;
|
||||
return Utils.w(nextTimeStamp, this);
|
||||
};
|
||||
|
||||
_proto.subtract = function subtract(number, string) {
|
||||
return this.add(number * -1, string);
|
||||
};
|
||||
|
||||
_proto.format = function format(formatStr) {
|
||||
var _this3 = this;
|
||||
|
||||
if (!this.isValid()) return C.INVALID_DATE_STRING;
|
||||
var str = formatStr || C.FORMAT_DEFAULT;
|
||||
var zoneStr = Utils.z(this);
|
||||
var locale = this.$locale();
|
||||
var $H = this.$H,
|
||||
$m = this.$m,
|
||||
$M = this.$M;
|
||||
var weekdays = locale.weekdays,
|
||||
months = locale.months,
|
||||
meridiem = locale.meridiem;
|
||||
|
||||
var getShort = function getShort(arr, index, full, length) {
|
||||
return arr && (arr[index] || arr(_this3, str)) || full[index].substr(0, length);
|
||||
};
|
||||
|
||||
var get$H = function get$H(num) {
|
||||
return Utils.s($H % 12 || 12, num, '0');
|
||||
};
|
||||
|
||||
var meridiemFunc = meridiem || function (hour, minute, isLowercase) {
|
||||
var m = hour < 12 ? 'AM' : 'PM';
|
||||
return isLowercase ? m.toLowerCase() : m;
|
||||
};
|
||||
|
||||
var matches = {
|
||||
YY: String(this.$y).slice(-2),
|
||||
YYYY: this.$y,
|
||||
M: $M + 1,
|
||||
MM: Utils.s($M + 1, 2, '0'),
|
||||
MMM: getShort(locale.monthsShort, $M, months, 3),
|
||||
MMMM: months[$M] || months(this, str),
|
||||
D: this.$D,
|
||||
DD: Utils.s(this.$D, 2, '0'),
|
||||
d: String(this.$W),
|
||||
dd: getShort(locale.weekdaysMin, this.$W, weekdays, 2),
|
||||
ddd: getShort(locale.weekdaysShort, this.$W, weekdays, 3),
|
||||
dddd: weekdays[this.$W],
|
||||
H: String($H),
|
||||
HH: Utils.s($H, 2, '0'),
|
||||
h: get$H(1),
|
||||
hh: get$H(2),
|
||||
a: meridiemFunc($H, $m, true),
|
||||
A: meridiemFunc($H, $m, false),
|
||||
m: String($m),
|
||||
mm: Utils.s($m, 2, '0'),
|
||||
s: String(this.$s),
|
||||
ss: Utils.s(this.$s, 2, '0'),
|
||||
SSS: Utils.s(this.$ms, 3, '0'),
|
||||
Z: zoneStr // 'ZZ' logic below
|
||||
|
||||
};
|
||||
return str.replace(C.REGEX_FORMAT, function (match, $1) {
|
||||
return $1 || matches[match] || zoneStr.replace(':', '');
|
||||
}); // 'ZZ'
|
||||
};
|
||||
|
||||
_proto.utcOffset = function utcOffset() {
|
||||
// Because a bug at FF24, we're rounding the timezone offset around 15 minutes
|
||||
// https://github.com/moment/moment/pull/1871
|
||||
return -Math.round(this.$d.getTimezoneOffset() / 15) * 15;
|
||||
};
|
||||
|
||||
_proto.diff = function diff(input, units, _float) {
|
||||
var _C$Y$C$M$C$Q$C$W$C$D$;
|
||||
|
||||
var unit = Utils.p(units);
|
||||
var that = dayjs(input);
|
||||
var zoneDelta = (that.utcOffset() - this.utcOffset()) * C.MILLISECONDS_A_MINUTE;
|
||||
var diff = this - that;
|
||||
var result = Utils.m(this, that);
|
||||
result = (_C$Y$C$M$C$Q$C$W$C$D$ = {}, _C$Y$C$M$C$Q$C$W$C$D$[C.Y] = result / 12, _C$Y$C$M$C$Q$C$W$C$D$[C.M] = result, _C$Y$C$M$C$Q$C$W$C$D$[C.Q] = result / 3, _C$Y$C$M$C$Q$C$W$C$D$[C.W] = (diff - zoneDelta) / C.MILLISECONDS_A_WEEK, _C$Y$C$M$C$Q$C$W$C$D$[C.D] = (diff - zoneDelta) / C.MILLISECONDS_A_DAY, _C$Y$C$M$C$Q$C$W$C$D$[C.H] = diff / C.MILLISECONDS_A_HOUR, _C$Y$C$M$C$Q$C$W$C$D$[C.MIN] = diff / C.MILLISECONDS_A_MINUTE, _C$Y$C$M$C$Q$C$W$C$D$[C.S] = diff / C.MILLISECONDS_A_SECOND, _C$Y$C$M$C$Q$C$W$C$D$)[unit] || diff; // milliseconds
|
||||
|
||||
return _float ? result : Utils.a(result);
|
||||
};
|
||||
|
||||
_proto.daysInMonth = function daysInMonth() {
|
||||
return this.endOf(C.M).$D;
|
||||
};
|
||||
|
||||
_proto.$locale = function $locale() {
|
||||
// get locale object
|
||||
return Ls[this.$L];
|
||||
};
|
||||
|
||||
_proto.locale = function locale(preset, object) {
|
||||
if (!preset) return this.$L;
|
||||
var that = this.clone();
|
||||
var nextLocaleName = parseLocale(preset, object, true);
|
||||
if (nextLocaleName) that.$L = nextLocaleName;
|
||||
return that;
|
||||
};
|
||||
|
||||
_proto.clone = function clone() {
|
||||
return Utils.w(this.$d, this);
|
||||
};
|
||||
|
||||
_proto.toDate = function toDate() {
|
||||
return new Date(this.valueOf());
|
||||
};
|
||||
|
||||
_proto.toJSON = function toJSON() {
|
||||
return this.isValid() ? this.toISOString() : null;
|
||||
};
|
||||
|
||||
_proto.toISOString = function toISOString() {
|
||||
// ie 8 return
|
||||
// new Dayjs(this.valueOf() + this.$d.getTimezoneOffset() * 60000)
|
||||
// .format('YYYY-MM-DDTHH:mm:ss.SSS[Z]')
|
||||
return this.$d.toISOString();
|
||||
};
|
||||
|
||||
_proto.toString = function toString() {
|
||||
return this.$d.toUTCString();
|
||||
};
|
||||
|
||||
return Dayjs;
|
||||
}();
|
||||
|
||||
dayjs.prototype = Dayjs.prototype;
|
||||
|
||||
dayjs.extend = function (plugin, option) {
|
||||
plugin(option, Dayjs, dayjs);
|
||||
return dayjs;
|
||||
};
|
||||
|
||||
dayjs.locale = parseLocale;
|
||||
dayjs.isDayjs = isDayjs;
|
||||
|
||||
dayjs.unix = function (timestamp) {
|
||||
return dayjs(timestamp * 1e3);
|
||||
};
|
||||
|
||||
dayjs.en = Ls[L];
|
||||
dayjs.Ls = Ls;
|
||||
export default dayjs;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Afrikaans [af]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'af',
|
||||
weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
|
||||
months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
|
||||
weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'oor %s',
|
||||
past: '%s gelede',
|
||||
s: "'n paar sekondes",
|
||||
m: "'n minuut",
|
||||
mm: '%d minute',
|
||||
h: "'n uur",
|
||||
hh: '%d ure',
|
||||
d: "'n dag",
|
||||
dd: '%d dae',
|
||||
M: "'n maand",
|
||||
MM: '%d maande',
|
||||
y: "'n jaar",
|
||||
yy: '%d jaar'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Arabic (Algeria) [ar-dz]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ar-dz',
|
||||
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||
weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
||||
monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||
weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'في %s',
|
||||
past: 'منذ %s',
|
||||
s: 'ثوان',
|
||||
m: 'دقيقة',
|
||||
mm: '%d دقائق',
|
||||
h: 'ساعة',
|
||||
hh: '%d ساعات',
|
||||
d: 'يوم',
|
||||
dd: '%d أيام',
|
||||
M: 'شهر',
|
||||
MM: '%d أشهر',
|
||||
y: 'سنة',
|
||||
yy: '%d سنوات'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Arabic (Kuwait) [ar-kw]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ar-kw',
|
||||
weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||
months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
||||
weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
||||
monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
||||
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'في %s',
|
||||
past: 'منذ %s',
|
||||
s: 'ثوان',
|
||||
m: 'دقيقة',
|
||||
mm: '%d دقائق',
|
||||
h: 'ساعة',
|
||||
hh: '%d ساعات',
|
||||
d: 'يوم',
|
||||
dd: '%d أيام',
|
||||
M: 'شهر',
|
||||
MM: '%d أشهر',
|
||||
y: 'سنة',
|
||||
yy: '%d سنوات'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Arabic (Lybia) [ar-ly]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ar-ly',
|
||||
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||
months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||
weekStart: 6,
|
||||
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||
monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'D/M/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Arabic (Morocco) [ar-ma]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ar-ma',
|
||||
weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||
months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
||||
weekStart: 6,
|
||||
weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
||||
monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
||||
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'في %s',
|
||||
past: 'منذ %s',
|
||||
s: 'ثوان',
|
||||
m: 'دقيقة',
|
||||
mm: '%d دقائق',
|
||||
h: 'ساعة',
|
||||
hh: '%d ساعات',
|
||||
d: 'يوم',
|
||||
dd: '%d أيام',
|
||||
M: 'شهر',
|
||||
MM: '%d أشهر',
|
||||
y: 'سنة',
|
||||
yy: '%d سنوات'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Arabic (Saudi Arabia) [ar-sa]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ar-sa',
|
||||
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||
months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||
monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'في %s',
|
||||
past: 'منذ %s',
|
||||
s: 'ثوان',
|
||||
m: 'دقيقة',
|
||||
mm: '%d دقائق',
|
||||
h: 'ساعة',
|
||||
hh: '%d ساعات',
|
||||
d: 'يوم',
|
||||
dd: '%d أيام',
|
||||
M: 'شهر',
|
||||
MM: '%d أشهر',
|
||||
y: 'سنة',
|
||||
yy: '%d سنوات'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Arabic (Tunisia) [ar-tn]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ar-tn',
|
||||
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||
monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'في %s',
|
||||
past: 'منذ %s',
|
||||
s: 'ثوان',
|
||||
m: 'دقيقة',
|
||||
mm: '%d دقائق',
|
||||
h: 'ساعة',
|
||||
hh: '%d ساعات',
|
||||
d: 'يوم',
|
||||
dd: '%d أيام',
|
||||
M: 'شهر',
|
||||
MM: '%d أشهر',
|
||||
y: 'سنة',
|
||||
yy: '%d سنوات'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
// Arabic [ar]
|
||||
import dayjs from '../index';
|
||||
var months = 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_');
|
||||
var locale = {
|
||||
name: 'ar',
|
||||
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||
months: months,
|
||||
monthsShort: months,
|
||||
weekStart: 6,
|
||||
relativeTime: {
|
||||
future: 'بعد %s',
|
||||
past: 'منذ %s',
|
||||
s: 'ثانية واحدة',
|
||||
m: 'دقيقة واحدة',
|
||||
mm: 'دقائق %d',
|
||||
h: 'ساعة واحدة',
|
||||
hh: 'ساعات %d',
|
||||
d: 'يوم واحد',
|
||||
dd: 'أيام %d',
|
||||
M: 'شهر واحد',
|
||||
MM: 'شهرا %d',
|
||||
y: 'عام واحد',
|
||||
yy: 'أعوام %d'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'D/M/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Azerbaijani [az]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'az',
|
||||
weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
|
||||
weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
|
||||
weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
|
||||
months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
|
||||
monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D MMMM YYYY г.',
|
||||
LLL: 'D MMMM YYYY г., H:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY г., H:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s sonra',
|
||||
past: '%s əvvəl',
|
||||
s: 'bir neçə saniyə',
|
||||
m: 'bir dəqiqə',
|
||||
mm: '%d dəqiqə',
|
||||
h: 'bir saat',
|
||||
hh: '%d saat',
|
||||
d: 'bir gün',
|
||||
dd: '%d gün',
|
||||
M: 'bir ay',
|
||||
MM: '%d ay',
|
||||
y: 'bir il',
|
||||
yy: '%d il'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Belarusian [be]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'be',
|
||||
weekdays: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
|
||||
months: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
||||
monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
|
||||
weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D MMMM YYYY г.',
|
||||
LLL: 'D MMMM YYYY г., HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY г., HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Bulgarian [bg]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'bg',
|
||||
weekdays: 'Неделя_Понеделник_Вторник_Сряда_Четвъртък_Петък_Събота'.split('_'),
|
||||
weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
|
||||
weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
|
||||
months: 'Януари_Февруари_Март_Април_Май_Юни_Юли_Август_Септември_Октомври_Ноември_Декември'.split('_'),
|
||||
monthsShort: 'Янр_Фев_Мар_Апр_Май_Юни_Юли_Авг_Сеп_Окт_Ное_Дек'.split('_'),
|
||||
weekStart: 1,
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'D.MM.YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY H:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY H:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'след %s',
|
||||
past: 'преди %s',
|
||||
s: 'няколко секунди',
|
||||
m: 'минута',
|
||||
mm: '%d минути',
|
||||
h: 'час',
|
||||
hh: '%d часа',
|
||||
d: 'ден',
|
||||
dd: '%d дни',
|
||||
M: 'месец',
|
||||
MM: '%d месеца',
|
||||
y: 'година',
|
||||
yy: '%d години'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'bi',
|
||||
weekdays: 'Sande_Mande_Tusde_Wenesde_Tosde_Fraede_Sarade'.split('_'),
|
||||
months: 'Januari_Februari_Maj_Eprel_Mei_Jun_Julae_Okis_Septemba_Oktoba_Novemba_Disemba'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'San_Man_Tus_Wen_Tos_Frae_Sar'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Maj_Epr_Mai_Jun_Jul_Oki_Sep_Okt_Nov_Dis'.split('_'),
|
||||
weekdaysMin: 'San_Ma_Tu_We_To_Fr_Sar'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'h:mm A',
|
||||
LTS: 'h:mm:ss A',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY h:mm A',
|
||||
LLLL: 'dddd, D MMMM YYYY h:mm A'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'lo %s',
|
||||
past: '%s bifo',
|
||||
s: 'sam seken',
|
||||
m: 'wan minit',
|
||||
mm: '%d minit',
|
||||
h: 'wan haoa',
|
||||
hh: '%d haoa',
|
||||
d: 'wan dei',
|
||||
dd: '%d dei',
|
||||
M: 'wan manis',
|
||||
MM: '%d manis',
|
||||
y: 'wan yia',
|
||||
yy: '%d yia'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Bambara [bm]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'bm',
|
||||
weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
|
||||
months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
|
||||
monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
|
||||
weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'MMMM [tile] D [san] YYYY',
|
||||
LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
|
||||
LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s kɔnɔ',
|
||||
past: 'a bɛ %s bɔ',
|
||||
s: 'sanga dama dama',
|
||||
m: 'miniti kelen',
|
||||
mm: 'miniti %d',
|
||||
h: 'lɛrɛ kelen',
|
||||
hh: 'lɛrɛ %d',
|
||||
d: 'tile kelen',
|
||||
dd: 'tile %d',
|
||||
M: 'kalo kelen',
|
||||
MM: 'kalo %d',
|
||||
y: 'san kelen',
|
||||
yy: 'san %d'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Bengali [bn]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'bn',
|
||||
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
|
||||
months: 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
|
||||
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
|
||||
monthsShort: 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
|
||||
weekdaysMin: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'A h:mm সময়',
|
||||
LTS: 'A h:mm:ss সময়',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY, A h:mm সময়',
|
||||
LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s পরে',
|
||||
past: '%s আগে',
|
||||
s: 'কয়েক সেকেন্ড',
|
||||
m: 'এক মিনিট',
|
||||
mm: '%d মিনিট',
|
||||
h: 'এক ঘন্টা',
|
||||
hh: '%d ঘন্টা',
|
||||
d: 'এক দিন',
|
||||
dd: '%d দিন',
|
||||
M: 'এক মাস',
|
||||
MM: '%d মাস',
|
||||
y: 'এক বছর',
|
||||
yy: '%d বছর'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Tibetan [bo]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'bo',
|
||||
weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
|
||||
months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
|
||||
weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
|
||||
monthsShort: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
|
||||
weekdaysMin: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'A h:mm',
|
||||
LTS: 'A h:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY, A h:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY, A h:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s ལ་',
|
||||
past: '%s སྔན་ལ',
|
||||
s: 'ལམ་སང',
|
||||
m: 'སྐར་མ་གཅིག',
|
||||
mm: '%d སྐར་མ',
|
||||
h: 'ཆུ་ཚོད་གཅིག',
|
||||
hh: '%d ཆུ་ཚོད',
|
||||
d: 'ཉིན་གཅིག',
|
||||
dd: '%d ཉིན་',
|
||||
M: 'ཟླ་བ་གཅིག',
|
||||
MM: '%d ཟླ་བ',
|
||||
y: 'ལོ་གཅིག',
|
||||
yy: '%d ལོ'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Breton [br]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'br',
|
||||
weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split('_'),
|
||||
months: "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
|
||||
monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split('_'),
|
||||
weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'h[e]mm A',
|
||||
LTS: 'h[e]mm:ss A',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D [a viz] MMMM YYYY',
|
||||
LLL: 'D [a viz] MMMM YYYY h[e]mm A',
|
||||
LLLL: 'dddd, D [a viz] MMMM YYYY h[e]mm A'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Bosnian [bs]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'bs',
|
||||
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
|
||||
months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
||||
monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
|
||||
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY H:mm',
|
||||
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
// Catalan [ca]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ca',
|
||||
weekdays: 'Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte'.split('_'),
|
||||
weekdaysShort: 'Dg._Dl._Dt._Dc._Dj._Dv._Ds.'.split('_'),
|
||||
weekdaysMin: 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
|
||||
months: 'Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre'.split('_'),
|
||||
monthsShort: 'Gen._Febr._Març_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.'.split('_'),
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM [de] YYYY',
|
||||
LLL: 'D MMMM [de] YYYY [a les] H:mm',
|
||||
LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
|
||||
ll: 'D MMM YYYY',
|
||||
lll: 'D MMM YYYY, H:mm',
|
||||
llll: 'ddd D MMM YYYY, H:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'd\'aquí %s',
|
||||
past: 'fa %s',
|
||||
s: 'uns segons',
|
||||
m: 'un minut',
|
||||
mm: '%d minuts',
|
||||
h: 'una hora',
|
||||
hh: '%d hores',
|
||||
d: 'un dia',
|
||||
dd: '%d dies',
|
||||
M: 'un mes',
|
||||
MM: '%d mesos',
|
||||
y: 'un any',
|
||||
yy: '%d anys'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n + "\xBA";
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
// Czech [cs]
|
||||
import dayjs from '../index';
|
||||
|
||||
function plural(n) {
|
||||
return n > 1 && n < 5 && ~~(n / 10) !== 1; // eslint-disable-line
|
||||
}
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
function translate(number, withoutSuffix, key, isFuture) {
|
||||
var result = number + " ";
|
||||
|
||||
switch (key) {
|
||||
case 's':
|
||||
// a few seconds / in a few seconds / a few seconds ago
|
||||
return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
|
||||
|
||||
case 'm':
|
||||
// a minute / in a minute / a minute ago
|
||||
return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
|
||||
|
||||
case 'mm':
|
||||
// 9 minutes / in 9 minutes / 9 minutes ago
|
||||
if (withoutSuffix || isFuture) {
|
||||
return result + (plural(number) ? 'minuty' : 'minut');
|
||||
}
|
||||
|
||||
return result + "minutami";
|
||||
|
||||
case 'h':
|
||||
// an hour / in an hour / an hour ago
|
||||
return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
|
||||
|
||||
case 'hh':
|
||||
// 9 hours / in 9 hours / 9 hours ago
|
||||
if (withoutSuffix || isFuture) {
|
||||
return result + (plural(number) ? 'hodiny' : 'hodin');
|
||||
}
|
||||
|
||||
return result + "hodinami";
|
||||
|
||||
case 'd':
|
||||
// a day / in a day / a day ago
|
||||
return withoutSuffix || isFuture ? 'den' : 'dnem';
|
||||
|
||||
case 'dd':
|
||||
// 9 days / in 9 days / 9 days ago
|
||||
if (withoutSuffix || isFuture) {
|
||||
return result + (plural(number) ? 'dny' : 'dní');
|
||||
}
|
||||
|
||||
return result + "dny";
|
||||
|
||||
case 'M':
|
||||
// a month / in a month / a month ago
|
||||
return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
|
||||
|
||||
case 'MM':
|
||||
// 9 months / in 9 months / 9 months ago
|
||||
if (withoutSuffix || isFuture) {
|
||||
return result + (plural(number) ? 'měsíce' : 'měsíců');
|
||||
}
|
||||
|
||||
return result + "m\u011Bs\xEDci";
|
||||
|
||||
case 'y':
|
||||
// a year / in a year / a year ago
|
||||
return withoutSuffix || isFuture ? 'rok' : 'rokem';
|
||||
|
||||
case 'yy':
|
||||
// 9 years / in 9 years / 9 years ago
|
||||
if (withoutSuffix || isFuture) {
|
||||
return result + (plural(number) ? 'roky' : 'let');
|
||||
}
|
||||
|
||||
return result + "lety";
|
||||
}
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
||||
|
||||
var locale = {
|
||||
name: 'cs',
|
||||
weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
|
||||
weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
|
||||
weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
|
||||
months: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
|
||||
monthsShort: 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
|
||||
weekStart: 1,
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY H:mm',
|
||||
LLLL: 'dddd D. MMMM YYYY H:mm',
|
||||
l: 'D. M. YYYY'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'za %s',
|
||||
past: 'před %s',
|
||||
s: translate,
|
||||
m: translate,
|
||||
mm: translate,
|
||||
h: translate,
|
||||
hh: translate,
|
||||
d: translate,
|
||||
dd: translate,
|
||||
M: translate,
|
||||
MM: translate,
|
||||
y: translate,
|
||||
yy: translate
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Chuvash [cv]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'cv',
|
||||
weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
|
||||
months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
|
||||
monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
|
||||
weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD-MM-YYYY',
|
||||
LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
|
||||
LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
|
||||
LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Welsh [cy]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'cy',
|
||||
weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
|
||||
months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
|
||||
monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
|
||||
weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'mewn %s',
|
||||
past: '%s yn ôl',
|
||||
s: 'ychydig eiliadau',
|
||||
m: 'munud',
|
||||
mm: '%d munud',
|
||||
h: 'awr',
|
||||
hh: '%d awr',
|
||||
d: 'diwrnod',
|
||||
dd: '%d diwrnod',
|
||||
M: 'mis',
|
||||
MM: '%d mis',
|
||||
y: 'blwyddyn',
|
||||
yy: '%d flynedd'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Danish [da]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'da',
|
||||
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
||||
weekdaysShort: 'søn._man._tirs._ons._tors._fre._lør.'.split('_'),
|
||||
weekdaysMin: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
||||
months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
|
||||
monthsShort: 'jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.'.split('_'),
|
||||
weekStart: 1,
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'om %s',
|
||||
past: '%s siden',
|
||||
s: 'få sekunder',
|
||||
m: 'et minut',
|
||||
mm: '%d minutter',
|
||||
h: 'en time',
|
||||
hh: '%d timer',
|
||||
d: 'en dag',
|
||||
dd: '%d dage',
|
||||
M: 'en måned',
|
||||
MM: '%d måneder',
|
||||
y: 'et år',
|
||||
yy: '%d år'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// German (Austria) [de-at]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'de-at',
|
||||
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
||||
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
||||
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
||||
months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
||||
monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LTS: 'HH:mm:ss',
|
||||
LT: 'HH:mm',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D. MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'in %s',
|
||||
past: 'vor %s',
|
||||
s: 'ein paar Sekunden',
|
||||
m: 'einer Minute',
|
||||
mm: '%d Minuten',
|
||||
h: 'einer Stunde',
|
||||
hh: '%d Stunden',
|
||||
d: 'einem Tag',
|
||||
dd: '%d Tagen',
|
||||
M: 'einem Monat',
|
||||
MM: '%d Monaten',
|
||||
y: 'einem Jahr',
|
||||
yy: '%d Jahren'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// German (Switzerland) [de-ch]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'de-ch',
|
||||
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
||||
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
||||
monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
||||
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D. MMMM YYYY HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// German [de]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'de',
|
||||
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
||||
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
||||
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
||||
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
||||
monthsShort: 'Jan_Feb_März_Apr_Mai_Juni_Juli_Aug_Sept_Okt_Nov_Dez'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LTS: 'HH:mm:ss',
|
||||
LT: 'HH:mm',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D. MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'in %s',
|
||||
past: 'vor %s',
|
||||
s: 'wenigen Sekunden',
|
||||
m: 'einer Minute',
|
||||
mm: '%d Minuten',
|
||||
h: 'einer Stunde',
|
||||
hh: '%d Stunden',
|
||||
d: 'einem Tag',
|
||||
dd: '%d Tagen',
|
||||
M: 'einem Monat',
|
||||
MM: '%d Monaten',
|
||||
y: 'einem Jahr',
|
||||
yy: '%d Jahren'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Maldivian [dv]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'dv',
|
||||
weekdays: 'އާދިއްތަ_ހޯމަ_އަންގާރަ_ބުދަ_ބުރާސްފަތި_ހުކުރު_ހޮނިހިރު'.split('_'),
|
||||
months: 'ޖެނުއަރީ_ފެބްރުއަރީ_މާރިޗު_އޭޕްރީލު_މޭ_ޖޫން_ޖުލައި_އޯގަސްޓު_ސެޕްޓެމްބަރު_އޮކްޓޯބަރު_ނޮވެމްބަރު_ޑިސެމްބަރު'.split('_'),
|
||||
weekStart: 7,
|
||||
weekdaysShort: 'އާދިއްތަ_ހޯމަ_އަންގާރަ_ބުދަ_ބުރާސްފަތި_ހުކުރު_ހޮނިހިރު'.split('_'),
|
||||
monthsShort: 'ޖެނުއަރީ_ފެބްރުއަރީ_މާރިޗު_އޭޕްރީލު_މޭ_ޖޫން_ޖުލައި_އޯގަސްޓު_ސެޕްޓެމްބަރު_އޮކްޓޯބަރު_ނޮވެމްބަރު_ޑިސެމްބަރު'.split('_'),
|
||||
weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'D/M/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'ތެރޭގައި %s',
|
||||
past: 'ކުރިން %s',
|
||||
s: 'ސިކުންތުކޮޅެއް',
|
||||
m: 'މިނިޓެއް',
|
||||
mm: 'މިނިޓު %d',
|
||||
h: 'ގަޑިއިރެއް',
|
||||
hh: 'ގަޑިއިރު %d',
|
||||
d: 'ދުވަހެއް',
|
||||
dd: 'ދުވަސް %d',
|
||||
M: 'މަހެއް',
|
||||
MM: 'މަސް %d',
|
||||
y: 'އަހަރެއް',
|
||||
yy: 'އަހަރު %d'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Greek [el]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'el',
|
||||
weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
|
||||
weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
|
||||
weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
|
||||
months: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
|
||||
monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαι_Ιουν_Ιουλ_Αυγ_Σεπτ_Οκτ_Νοε_Δεκ'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
weekStart: 1,
|
||||
relativeTime: {
|
||||
future: 'σε %s',
|
||||
past: 'πριν %s',
|
||||
s: 'μερικά δευτερόλεπτα',
|
||||
m: 'ένα λεπτό',
|
||||
mm: '%d λεπτά',
|
||||
h: 'μία ώρα',
|
||||
hh: '%d ώρες',
|
||||
d: 'μία μέρα',
|
||||
dd: '%d μέρες',
|
||||
M: 'ένα μήνα',
|
||||
MM: '%d μήνες',
|
||||
y: 'ένα χρόνο',
|
||||
yy: '%d χρόνια'
|
||||
},
|
||||
formats: {
|
||||
LT: 'h:mm A',
|
||||
LTS: 'h:mm:ss A',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY h:mm A',
|
||||
LLLL: 'dddd, D MMMM YYYY h:mm A'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// English (Singapore) [en-sg]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'en-SG',
|
||||
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'in %s',
|
||||
past: '%s ago',
|
||||
s: 'a few seconds',
|
||||
m: 'a minute',
|
||||
mm: '%d minutes',
|
||||
h: 'an hour',
|
||||
hh: '%d hours',
|
||||
d: 'a day',
|
||||
dd: '%d days',
|
||||
M: 'a month',
|
||||
MM: '%d months',
|
||||
y: 'a year',
|
||||
yy: '%d years'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// English (Australia) [en-au]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'en-au',
|
||||
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'h:mm A',
|
||||
LTS: 'h:mm:ss A',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY h:mm A',
|
||||
LLLL: 'dddd, D MMMM YYYY h:mm A'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'in %s',
|
||||
past: '%s ago',
|
||||
s: 'a few seconds',
|
||||
m: 'a minute',
|
||||
mm: '%d minutes',
|
||||
h: 'an hour',
|
||||
hh: '%d hours',
|
||||
d: 'a day',
|
||||
dd: '%d days',
|
||||
M: 'a month',
|
||||
MM: '%d months',
|
||||
y: 'a year',
|
||||
yy: '%d years'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// English (Canada) [en-ca]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'en-ca',
|
||||
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'h:mm A',
|
||||
LTS: 'h:mm:ss A',
|
||||
L: 'YYYY-MM-DD',
|
||||
LL: 'MMMM D, YYYY',
|
||||
LLL: 'MMMM D, YYYY h:mm A',
|
||||
LLLL: 'dddd, MMMM D, YYYY h:mm A'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'in %s',
|
||||
past: '%s ago',
|
||||
s: 'a few seconds',
|
||||
m: 'a minute',
|
||||
mm: '%d minutes',
|
||||
h: 'an hour',
|
||||
hh: '%d hours',
|
||||
d: 'a day',
|
||||
dd: '%d days',
|
||||
M: 'a month',
|
||||
MM: '%d months',
|
||||
y: 'a year',
|
||||
yy: '%d years'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
// English (United Kingdom) [en-gb]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'en-gb',
|
||||
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||
weekStart: 1,
|
||||
yearStart: 4,
|
||||
relativeTime: {
|
||||
future: 'in %s',
|
||||
past: '%s ago',
|
||||
s: 'a few seconds',
|
||||
m: 'a minute',
|
||||
mm: '%d minutes',
|
||||
h: 'an hour',
|
||||
hh: '%d hours',
|
||||
d: 'a day',
|
||||
dd: '%d days',
|
||||
M: 'a month',
|
||||
MM: '%d months',
|
||||
y: 'a year',
|
||||
yy: '%d years'
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
var s = ['th', 'st', 'nd', 'rd'];
|
||||
var v = n % 100;
|
||||
return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// English (Ireland) [en-ie]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'en-ie',
|
||||
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'in %s',
|
||||
past: '%s ago',
|
||||
s: 'a few seconds',
|
||||
m: 'a minute',
|
||||
mm: '%d minutes',
|
||||
h: 'an hour',
|
||||
hh: '%d hours',
|
||||
d: 'a day',
|
||||
dd: '%d days',
|
||||
M: 'a month',
|
||||
MM: '%d months',
|
||||
y: 'a year',
|
||||
yy: '%d years'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// English (Israel) [en-il]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'en-il',
|
||||
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'in %s',
|
||||
past: '%s ago',
|
||||
s: 'a few seconds',
|
||||
m: 'a minute',
|
||||
mm: '%d minutes',
|
||||
h: 'an hour',
|
||||
hh: '%d hours',
|
||||
d: 'a day',
|
||||
dd: '%d days',
|
||||
M: 'a month',
|
||||
MM: '%d months',
|
||||
y: 'a year',
|
||||
yy: '%d years'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// English (New Zealand) [en-nz]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'en-nz',
|
||||
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'h:mm A',
|
||||
LTS: 'h:mm:ss A',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY h:mm A',
|
||||
LLLL: 'dddd, D MMMM YYYY h:mm A'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'in %s',
|
||||
past: '%s ago',
|
||||
s: 'a few seconds',
|
||||
m: 'a minute',
|
||||
mm: '%d minutes',
|
||||
h: 'an hour',
|
||||
hh: '%d hours',
|
||||
d: 'a day',
|
||||
dd: '%d days',
|
||||
M: 'a month',
|
||||
MM: '%d months',
|
||||
y: 'a year',
|
||||
yy: '%d years'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// We don't need weekdaysShort, weekdaysMin, monthsShort in en.js locale
|
||||
export default {
|
||||
name: 'en',
|
||||
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_')
|
||||
};
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Esperanto [eo]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'eo',
|
||||
weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
|
||||
months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
|
||||
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
|
||||
weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'YYYY-MM-DD',
|
||||
LL: 'D[-a de] MMMM, YYYY',
|
||||
LLL: 'D[-a de] MMMM, YYYY HH:mm',
|
||||
LLLL: 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'post %s',
|
||||
past: 'antaŭ %s',
|
||||
s: 'sekundoj',
|
||||
m: 'minuto',
|
||||
mm: '%d minutoj',
|
||||
h: 'horo',
|
||||
hh: '%d horoj',
|
||||
d: 'tago',
|
||||
dd: '%d tagoj',
|
||||
M: 'monato',
|
||||
MM: '%d monatoj',
|
||||
y: 'jaro',
|
||||
yy: '%d jaroj'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Spanish (Dominican Republic) [es-do]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'es-do',
|
||||
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||
months: 'Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre'.split('_'),
|
||||
monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
||||
weekStart: 1,
|
||||
relativeTime: {
|
||||
future: 'en %s',
|
||||
past: 'hace %s',
|
||||
s: 'unos segundos',
|
||||
m: 'un minuto',
|
||||
mm: '%d minutos',
|
||||
h: 'una hora',
|
||||
hh: '%d horas',
|
||||
d: 'un día',
|
||||
dd: '%d días',
|
||||
M: 'un mes',
|
||||
MM: '%d meses',
|
||||
y: 'un año',
|
||||
yy: '%d años'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n + "\xBA";
|
||||
},
|
||||
formats: {
|
||||
LT: 'h:mm A',
|
||||
LTS: 'h:mm:ss A',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D [de] MMMM [de] YYYY',
|
||||
LLL: 'D [de] MMMM [de] YYYY h:mm A',
|
||||
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Spanish (United States) [es-us]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'es-us',
|
||||
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||
months: 'Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre'.split('_'),
|
||||
monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
||||
relativeTime: {
|
||||
future: 'en %s',
|
||||
past: 'hace %s',
|
||||
s: 'unos segundos',
|
||||
m: 'un minuto',
|
||||
mm: '%d minutos',
|
||||
h: 'una hora',
|
||||
hh: '%d horas',
|
||||
d: 'un día',
|
||||
dd: '%d días',
|
||||
M: 'un mes',
|
||||
MM: '%d meses',
|
||||
y: 'un año',
|
||||
yy: '%d años'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n + "\xBA";
|
||||
},
|
||||
formats: {
|
||||
LT: 'h:mm A',
|
||||
LTS: 'h:mm:ss A',
|
||||
L: 'MM/DD/YYYY',
|
||||
LL: 'D [de] MMMM [de] YYYY',
|
||||
LLL: 'D [de] MMMM [de] YYYY h:mm A',
|
||||
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Spanish [es]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'es',
|
||||
monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
||||
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||
months: 'Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre'.split('_'),
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D [de] MMMM [de] YYYY',
|
||||
LLL: 'D [de] MMMM [de] YYYY H:mm',
|
||||
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'en %s',
|
||||
past: 'hace %s',
|
||||
s: 'unos segundos',
|
||||
m: 'un minuto',
|
||||
mm: '%d minutos',
|
||||
h: 'una hora',
|
||||
hh: '%d horas',
|
||||
d: 'un día',
|
||||
dd: '%d días',
|
||||
M: 'un mes',
|
||||
MM: '%d meses',
|
||||
y: 'un año',
|
||||
yy: '%d años'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n + "\xBA";
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
// Estonian [et]
|
||||
import dayjs from '../index';
|
||||
|
||||
function relativeTimeWithTense(number, withoutSuffix, key, isFuture) {
|
||||
var format = {
|
||||
s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
|
||||
m: ['ühe minuti', 'üks minut'],
|
||||
mm: ['%d minuti', '%d minutit'],
|
||||
h: ['ühe tunni', 'tund aega', 'üks tund'],
|
||||
hh: ['%d tunni', '%d tundi'],
|
||||
d: ['ühe päeva', 'üks päev'],
|
||||
M: ['kuu aja', 'kuu aega', 'üks kuu'],
|
||||
MM: ['%d kuu', '%d kuud'],
|
||||
y: ['ühe aasta', 'aasta', 'üks aasta'],
|
||||
yy: ['%d aasta', '%d aastat']
|
||||
};
|
||||
|
||||
if (withoutSuffix) {
|
||||
return (format[key][2] ? format[key][2] : format[key][1]).replace('%d', number);
|
||||
}
|
||||
|
||||
return (isFuture ? format[key][0] : format[key][1]).replace('%d', number);
|
||||
}
|
||||
|
||||
var locale = {
|
||||
name: 'et',
|
||||
// Estonian
|
||||
weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
|
||||
// Note weekdays are not capitalized in Estonian
|
||||
weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
|
||||
// There is no short form of weekdays in Estonian except this 1 letter format so it is used for both 'weekdaysShort' and 'weekdaysMin'
|
||||
weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
|
||||
months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
|
||||
// Note month names are not capitalized in Estonian
|
||||
monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
weekStart: 1,
|
||||
relativeTime: {
|
||||
future: '%s pärast',
|
||||
past: '%s tagasi',
|
||||
s: relativeTimeWithTense,
|
||||
m: relativeTimeWithTense,
|
||||
mm: relativeTimeWithTense,
|
||||
h: relativeTimeWithTense,
|
||||
hh: relativeTimeWithTense,
|
||||
d: relativeTimeWithTense,
|
||||
dd: '%d päeva',
|
||||
M: relativeTimeWithTense,
|
||||
MM: relativeTimeWithTense,
|
||||
y: relativeTimeWithTense,
|
||||
yy: relativeTimeWithTense
|
||||
},
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY H:mm',
|
||||
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
// Basque [eu]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'eu',
|
||||
weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
|
||||
months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
|
||||
monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
|
||||
weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'YYYY-MM-DD',
|
||||
LL: 'YYYY[ko] MMMM[ren] D[a]',
|
||||
LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
|
||||
LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
|
||||
l: 'YYYY-M-D',
|
||||
ll: 'YYYY[ko] MMM D[a]',
|
||||
lll: 'YYYY[ko] MMM D[a] HH:mm',
|
||||
llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s barru',
|
||||
past: 'duela %s',
|
||||
s: 'segundo batzuk',
|
||||
m: 'minutu bat',
|
||||
mm: '%d minutu',
|
||||
h: 'ordu bat',
|
||||
hh: '%d ordu',
|
||||
d: 'egun bat',
|
||||
dd: '%d egun',
|
||||
M: 'hilabete bat',
|
||||
MM: '%d hilabete',
|
||||
y: 'urte bat',
|
||||
yy: '%d urte'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Persian [fa]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'fa',
|
||||
weekdays: 'یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه'.split('_'),
|
||||
weekdaysShort: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split('_'),
|
||||
weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
|
||||
weekStart: 6,
|
||||
months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
|
||||
monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'در %s',
|
||||
past: '%s پیش',
|
||||
s: 'چند ثانیه',
|
||||
m: 'یک دقیقه',
|
||||
mm: '%d دقیقه',
|
||||
h: 'یک ساعت',
|
||||
hh: '%d ساعت',
|
||||
d: 'یک روز',
|
||||
dd: '%d روز',
|
||||
M: 'یک ماه',
|
||||
MM: '%d ماه',
|
||||
y: 'یک سال',
|
||||
yy: '%d سال'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
// Finnish [fi]
|
||||
import dayjs from '../index';
|
||||
|
||||
function relativeTimeFormatter(number, withoutSuffix, key, isFuture) {
|
||||
var past = {
|
||||
s: 'muutama sekunti',
|
||||
m: 'minuutti',
|
||||
mm: '%d minuuttia',
|
||||
h: 'tunti',
|
||||
hh: '%d tuntia',
|
||||
d: 'päivä',
|
||||
dd: '%d päivää',
|
||||
M: 'kuukausi',
|
||||
MM: '%d kuukautta',
|
||||
y: 'vuosi',
|
||||
yy: '%d vuotta',
|
||||
numbers: 'nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän'.split('_')
|
||||
};
|
||||
var future = {
|
||||
s: 'muutaman sekunnin',
|
||||
m: 'minuutin',
|
||||
mm: '%d minuutin',
|
||||
h: 'tunnin',
|
||||
hh: '%d tunnin',
|
||||
d: 'päivän',
|
||||
dd: '%d päivän',
|
||||
M: 'kuukauden',
|
||||
MM: '%d kuukauden',
|
||||
y: 'vuoden',
|
||||
yy: '%d vuoden',
|
||||
numbers: 'nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän'.split('_')
|
||||
};
|
||||
var words = isFuture && !withoutSuffix ? future : past;
|
||||
var result = words[key];
|
||||
|
||||
if (number < 10) {
|
||||
return result.replace('%d', words.numbers[number]);
|
||||
}
|
||||
|
||||
return result.replace('%d', number);
|
||||
}
|
||||
|
||||
var locale = {
|
||||
name: 'fi',
|
||||
// Finnish
|
||||
weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
|
||||
// Note weekdays are not capitalized in Finnish
|
||||
weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
|
||||
// There is no short form of weekdays in Finnish except this 2 letter format so it is used for both 'weekdaysShort' and 'weekdaysMin'
|
||||
weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
|
||||
months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
|
||||
// Note month names are not capitalized in Finnish
|
||||
monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
weekStart: 1,
|
||||
relativeTime: {
|
||||
future: '%s päästä',
|
||||
past: '%s sitten',
|
||||
s: relativeTimeFormatter,
|
||||
m: relativeTimeFormatter,
|
||||
mm: relativeTimeFormatter,
|
||||
h: relativeTimeFormatter,
|
||||
hh: relativeTimeFormatter,
|
||||
d: relativeTimeFormatter,
|
||||
dd: relativeTimeFormatter,
|
||||
M: relativeTimeFormatter,
|
||||
MM: relativeTimeFormatter,
|
||||
y: relativeTimeFormatter,
|
||||
yy: relativeTimeFormatter
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH.mm',
|
||||
LTS: 'HH.mm.ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'Do MMMM[ta] YYYY',
|
||||
LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
|
||||
LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
|
||||
l: 'D.M.YYYY',
|
||||
ll: 'Do MMM YYYY',
|
||||
lll: 'Do MMM YYYY, [klo] HH.mm',
|
||||
llll: 'ddd, Do MMM YYYY, [klo] HH.mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Faroese [fo]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'fo',
|
||||
weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
|
||||
months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
|
||||
monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
|
||||
weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D. MMMM, YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'um %s',
|
||||
past: '%s síðani',
|
||||
s: 'fá sekund',
|
||||
m: 'ein minuttur',
|
||||
mm: '%d minuttir',
|
||||
h: 'ein tími',
|
||||
hh: '%d tímar',
|
||||
d: 'ein dagur',
|
||||
dd: '%d dagar',
|
||||
M: 'ein mánaður',
|
||||
MM: '%d mánaðir',
|
||||
y: 'eitt ár',
|
||||
yy: '%d ár'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// French (Canada) [fr-ca]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'fr-ca',
|
||||
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
|
||||
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
|
||||
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
|
||||
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
|
||||
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'YYYY-MM-DD',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'dans %s',
|
||||
past: 'il y a %s',
|
||||
s: 'quelques secondes',
|
||||
m: 'une minute',
|
||||
mm: '%d minutes',
|
||||
h: 'une heure',
|
||||
hh: '%d heures',
|
||||
d: 'un jour',
|
||||
dd: '%d jours',
|
||||
M: 'un mois',
|
||||
MM: '%d mois',
|
||||
y: 'un an',
|
||||
yy: '%d ans'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// French (Switzerland) [fr-ch]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'fr-ch',
|
||||
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
|
||||
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
|
||||
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
|
||||
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'dans %s',
|
||||
past: 'il y a %s',
|
||||
s: 'quelques secondes',
|
||||
m: 'une minute',
|
||||
mm: '%d minutes',
|
||||
h: 'une heure',
|
||||
hh: '%d heures',
|
||||
d: 'un jour',
|
||||
dd: '%d jours',
|
||||
M: 'un mois',
|
||||
MM: '%d mois',
|
||||
y: 'un an',
|
||||
yy: '%d ans'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
// French [fr]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'fr',
|
||||
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
|
||||
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
|
||||
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
|
||||
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
|
||||
monthsShort: 'janv_févr_mars_avril_mai_juin_juil_août_sept_oct_nov_déc'.split('_'),
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'dans %s',
|
||||
past: 'il y a %s',
|
||||
s: 'quelques secondes',
|
||||
m: 'une minute',
|
||||
mm: '%d minutes',
|
||||
h: 'une heure',
|
||||
hh: '%d heures',
|
||||
d: 'un jour',
|
||||
dd: '%d jours',
|
||||
M: 'un mois',
|
||||
MM: '%d mois',
|
||||
y: 'un an',
|
||||
yy: '%d ans'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
var o = n === 1 ? 'er' : '';
|
||||
return "" + n + o;
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Frisian [fy]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'fy',
|
||||
weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
|
||||
months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
|
||||
monthsShort: 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
|
||||
weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD-MM-YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'oer %s',
|
||||
past: '%s lyn',
|
||||
s: 'in pear sekonden',
|
||||
m: 'ien minút',
|
||||
mm: '%d minuten',
|
||||
h: 'ien oere',
|
||||
hh: '%d oeren',
|
||||
d: 'ien dei',
|
||||
dd: '%d dagen',
|
||||
M: 'ien moanne',
|
||||
MM: '%d moannen',
|
||||
y: 'ien jier',
|
||||
yy: '%d jierren'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Irish or Irish Gaelic [ga]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ga',
|
||||
weekdays: 'Dé Domhnaigh_Dé Luain_Dé Máirt_Dé Céadaoin_Déardaoin_Dé hAoine_Dé Satharn'.split('_'),
|
||||
months: 'Eanáir_Feabhra_Márta_Aibreán_Bealtaine_Méitheamh_Iúil_Lúnasa_Meán Fómhair_Deaireadh Fómhair_Samhain_Nollaig'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Dom_Lua_Mái_Céa_Déa_hAo_Sat'.split('_'),
|
||||
monthsShort: 'Eaná_Feab_Márt_Aibr_Beal_Méit_Iúil_Lúna_Meán_Deai_Samh_Noll'.split('_'),
|
||||
weekdaysMin: 'Do_Lu_Má_Ce_Dé_hA_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'i %s',
|
||||
past: '%s ó shin',
|
||||
s: 'cúpla soicind',
|
||||
m: 'nóiméad',
|
||||
mm: '%d nóiméad',
|
||||
h: 'uair an chloig',
|
||||
hh: '%d uair an chloig',
|
||||
d: 'lá',
|
||||
dd: '%d lá',
|
||||
M: 'mí',
|
||||
MM: '%d mí',
|
||||
y: 'bliain',
|
||||
yy: '%d bliain'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Scottish Gaelic [gd]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'gd',
|
||||
weekdays: 'Didòmhnaich_Diluain_Dimàirt_Diciadain_Diardaoin_Dihaoine_Disathairne'.split('_'),
|
||||
months: 'Am Faoilleach_An Gearran_Am Màrt_An Giblean_An Cèitean_An t-Ògmhios_An t-Iuchar_An Lùnastal_An t-Sultain_An Dàmhair_An t-Samhain_An Dùbhlachd'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Did_Dil_Dim_Dic_Dia_Dih_Dis'.split('_'),
|
||||
monthsShort: 'Faoi_Gear_Màrt_Gibl_Cèit_Ògmh_Iuch_Lùn_Sult_Dàmh_Samh_Dùbh'.split('_'),
|
||||
weekdaysMin: 'Dò_Lu_Mà_Ci_Ar_Ha_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'ann an %s',
|
||||
past: 'bho chionn %s',
|
||||
s: 'beagan diogan',
|
||||
m: 'mionaid',
|
||||
mm: '%d mionaidean',
|
||||
h: 'uair',
|
||||
hh: '%d uairean',
|
||||
d: 'latha',
|
||||
dd: '%d latha',
|
||||
M: 'mìos',
|
||||
MM: '%d mìosan',
|
||||
y: 'bliadhna',
|
||||
yy: '%d bliadhna'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Galician [gl]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'gl',
|
||||
weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
|
||||
months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
|
||||
monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
|
||||
weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D [de] MMMM [de] YYYY',
|
||||
LLL: 'D [de] MMMM [de] YYYY H:mm',
|
||||
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
// Konkani Latin script [gom-latn]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'gom-latn',
|
||||
weekdays: "Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split('_'),
|
||||
months: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
|
||||
monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
|
||||
weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'A h:mm [vazta]',
|
||||
LTS: 'A h:mm:ss [vazta]',
|
||||
L: 'DD-MM-YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY A h:mm [vazta]',
|
||||
LLLL: 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
|
||||
llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Gujarati [gu]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'gu',
|
||||
weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
|
||||
months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
|
||||
weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
|
||||
monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
|
||||
weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'A h:mm વાગ્યે',
|
||||
LTS: 'A h:mm:ss વાગ્યે',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
|
||||
LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s મા',
|
||||
past: '%s પેહલા',
|
||||
s: 'અમુક પળો',
|
||||
m: 'એક મિનિટ',
|
||||
mm: '%d મિનિટ',
|
||||
h: 'એક કલાક',
|
||||
hh: '%d કલાક',
|
||||
d: 'એક દિવસ',
|
||||
dd: '%d દિવસ',
|
||||
M: 'એક મહિનો',
|
||||
MM: '%d મહિનો',
|
||||
y: 'એક વર્ષ',
|
||||
yy: '%d વર્ષ'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
// Hebrew [he]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'he',
|
||||
weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
|
||||
weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
|
||||
weekdaysMin: 'א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳'.split('_'),
|
||||
months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
|
||||
monthsShort: 'ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ'.split('_'),
|
||||
relativeTime: {
|
||||
future: 'בעוד %s',
|
||||
past: 'לפני %s',
|
||||
s: 'כמה שניות',
|
||||
m: 'דקה',
|
||||
mm: '%d דקות',
|
||||
h: 'שעה',
|
||||
hh: '%d שעות',
|
||||
d: 'יום',
|
||||
dd: '%d ימים',
|
||||
M: 'חודש',
|
||||
MM: '%d חודשים',
|
||||
y: 'שנה',
|
||||
yy: '%d שנים'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
format: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D [ב]MMMM YYYY',
|
||||
LLL: 'D [ב]MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
|
||||
l: 'D/M/YYYY',
|
||||
ll: 'D MMM YYYY',
|
||||
lll: 'D MMM YYYY HH:mm',
|
||||
llll: 'ddd, D MMM YYYY HH:mm'
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D [ב]MMMM YYYY',
|
||||
LLL: 'D [ב]MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
|
||||
l: 'D/M/YYYY',
|
||||
ll: 'D MMM YYYY',
|
||||
lll: 'D MMM YYYY HH:mm',
|
||||
llll: 'ddd, D MMM YYYY HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Hindi [hi]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'hi',
|
||||
weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
|
||||
months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
|
||||
weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
|
||||
monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
|
||||
weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'A h:mm बजे',
|
||||
LTS: 'A h:mm:ss बजे',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY, A h:mm बजे',
|
||||
LLLL: 'dddd, D MMMM YYYY, A h:mm बजे'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s में',
|
||||
past: '%s पहले',
|
||||
s: 'कुछ ही क्षण',
|
||||
m: 'एक मिनट',
|
||||
mm: '%d मिनट',
|
||||
h: 'एक घंटा',
|
||||
hh: '%d घंटे',
|
||||
d: 'एक दिन',
|
||||
dd: '%d दिन',
|
||||
M: 'एक महीने',
|
||||
MM: '%d महीने',
|
||||
y: 'एक वर्ष',
|
||||
yy: '%d वर्ष'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Croatian [hr]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'hr',
|
||||
weekdays: 'Nedjelja_Ponedjeljak_Utorak_Srijeda_Četvrtak_Petak_Subota'.split('_'),
|
||||
weekdaysShort: 'Ned._Pon._Uto._Sri._Čet._Pet._Sub.'.split('_'),
|
||||
weekdaysMin: 'Ne_Po_Ut_Sr_Če_Pe_Su'.split('_'),
|
||||
months: 'Siječanj_Veljača_Ožujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac'.split('_'),
|
||||
monthsShort: 'Sij._Velj._Ožu._Tra._Svi._Lip._Srp._Kol._Ruj._Lis._Stu._Pro.'.split('_'),
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY H:mm',
|
||||
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'za %s',
|
||||
past: 'prije %s',
|
||||
s: 'sekunda',
|
||||
m: 'minuta',
|
||||
mm: '%d minuta',
|
||||
h: 'sat',
|
||||
hh: '%d sati',
|
||||
d: 'dan',
|
||||
dd: '%d dana',
|
||||
M: 'mjesec',
|
||||
MM: '%d mjeseci',
|
||||
y: 'godina',
|
||||
yy: '%d godine'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Hungarian [hu]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'hu',
|
||||
weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
|
||||
weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
|
||||
weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
|
||||
months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
|
||||
monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
weekStart: 1,
|
||||
relativeTime: {
|
||||
future: '%s múlva',
|
||||
past: '%s',
|
||||
s: 'néhány másodperc',
|
||||
m: 'egy perc',
|
||||
mm: '%d perc',
|
||||
h: 'egy óra',
|
||||
hh: '%d óra',
|
||||
d: 'egy nap',
|
||||
dd: '%d nap',
|
||||
M: 'egy hónap',
|
||||
MM: '%d hónap',
|
||||
y: 'egy éve',
|
||||
yy: '%d év'
|
||||
},
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'YYYY.MM.DD.',
|
||||
LL: 'YYYY. MMMM D.',
|
||||
LLL: 'YYYY. MMMM D. H:mm',
|
||||
LLLL: 'YYYY. MMMM D., dddd H:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Armenian [hy-am]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'hy-am',
|
||||
weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
|
||||
months: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
|
||||
monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
|
||||
weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D MMMM YYYY թ.',
|
||||
LLL: 'D MMMM YYYY թ., HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY թ., HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s հետո',
|
||||
past: '%s առաջ',
|
||||
s: 'մի քանի վայրկյան',
|
||||
m: 'րոպե',
|
||||
mm: '%d րոպե',
|
||||
h: 'ժամ',
|
||||
hh: '%d ժամ',
|
||||
d: 'օր',
|
||||
dd: '%d օր',
|
||||
M: 'ամիս',
|
||||
MM: '%d ամիս',
|
||||
y: 'տարի',
|
||||
yy: '%d տարի'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Indonesian [id]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'id',
|
||||
weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
|
||||
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
|
||||
weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
|
||||
weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'HH.mm',
|
||||
LTS: 'HH.mm.ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY [pukul] HH.mm',
|
||||
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'dalam %s',
|
||||
past: '%s yang lalu',
|
||||
s: 'beberapa detik',
|
||||
m: 'semenit',
|
||||
mm: '%d menit',
|
||||
h: 'sejam',
|
||||
hh: '%d jam',
|
||||
d: 'sehari',
|
||||
dd: '%d hari',
|
||||
M: 'sebulan',
|
||||
MM: '%d bulan',
|
||||
y: 'setahun',
|
||||
yy: '%d tahun'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Icelandic [is]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'is',
|
||||
weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
|
||||
months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
|
||||
monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
|
||||
weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY [kl.] H:mm',
|
||||
LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Italian (Switzerland) [it-ch]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'it-ch',
|
||||
weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
|
||||
months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
|
||||
monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
|
||||
weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Italian [it]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'it',
|
||||
weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
|
||||
weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
|
||||
weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
|
||||
months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
|
||||
weekStart: 1,
|
||||
monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'tra %s',
|
||||
past: '%s fa',
|
||||
s: 'qualche secondo',
|
||||
m: 'un minuto',
|
||||
mm: '%d minuti',
|
||||
h: 'un\' ora',
|
||||
hh: '%d ore',
|
||||
d: 'un giorno',
|
||||
dd: '%d giorni',
|
||||
M: 'un mese',
|
||||
MM: '%d mesi',
|
||||
y: 'un anno',
|
||||
yy: '%d anni'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n + "\xBA";
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
// Japanese [ja]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ja',
|
||||
weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
|
||||
weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
|
||||
weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
|
||||
months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
||||
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + "\u65E5";
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'YYYY/MM/DD',
|
||||
LL: 'YYYY年M月D日',
|
||||
LLL: 'YYYY年M月D日 HH:mm',
|
||||
LLLL: 'YYYY年M月D日 dddd HH:mm',
|
||||
l: 'YYYY/MM/DD',
|
||||
ll: 'YYYY年M月D日',
|
||||
lll: 'YYYY年M月D日 HH:mm',
|
||||
llll: 'YYYY年M月D日(ddd) HH:mm'
|
||||
},
|
||||
meridiem: function meridiem(hour) {
|
||||
return hour < 12 ? '午前' : '午後';
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s後',
|
||||
past: '%s前',
|
||||
s: '数秒',
|
||||
m: '1分',
|
||||
mm: '%d分',
|
||||
h: '1時間',
|
||||
hh: '%d時間',
|
||||
d: '1日',
|
||||
dd: '%d日',
|
||||
M: '1ヶ月',
|
||||
MM: '%dヶ月',
|
||||
y: '1年',
|
||||
yy: '%d年'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Javanese [jv]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'jv',
|
||||
weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
|
||||
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
|
||||
weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH.mm',
|
||||
LTS: 'HH.mm.ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY [pukul] HH.mm',
|
||||
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'wonten ing %s',
|
||||
past: '%s ingkang kepengker',
|
||||
s: 'sawetawis detik',
|
||||
m: 'setunggal menit',
|
||||
mm: '%d menit',
|
||||
h: 'setunggal jam',
|
||||
hh: '%d jam',
|
||||
d: 'sedinten',
|
||||
dd: '%d dinten',
|
||||
M: 'sewulan',
|
||||
MM: '%d wulan',
|
||||
y: 'setaun',
|
||||
yy: '%d taun'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Georgian [ka]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ka',
|
||||
weekdays: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
|
||||
weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
|
||||
weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
|
||||
months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
|
||||
monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'h:mm A',
|
||||
LTS: 'h:mm:ss A',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY h:mm A',
|
||||
LLLL: 'dddd, D MMMM YYYY h:mm A'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s შემდეგ',
|
||||
past: '%s წინ',
|
||||
s: 'წამი',
|
||||
m: 'წუთი',
|
||||
mm: '%d წუთი',
|
||||
h: 'საათი',
|
||||
hh: '%d საათის',
|
||||
d: 'დღეს',
|
||||
dd: '%d დღის განმავლობაში',
|
||||
M: 'თვის',
|
||||
MM: '%d თვის',
|
||||
y: 'წელი',
|
||||
yy: '%d წლის'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Kazakh [kk]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'kk',
|
||||
weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
|
||||
weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
|
||||
weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
|
||||
months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
|
||||
monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
|
||||
weekStart: 1,
|
||||
relativeTime: {
|
||||
future: '%s ішінде',
|
||||
past: '%s бұрын',
|
||||
s: 'бірнеше секунд',
|
||||
m: 'бір минут',
|
||||
mm: '%d минут',
|
||||
h: 'бір сағат',
|
||||
hh: '%d сағат',
|
||||
d: 'бір күн',
|
||||
dd: '%d күн',
|
||||
M: 'бір ай',
|
||||
MM: '%d ай',
|
||||
y: 'бір жыл',
|
||||
yy: '%d жыл'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Cambodian [km]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'km',
|
||||
weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
|
||||
months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
|
||||
monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
|
||||
weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%sទៀត',
|
||||
past: '%sមុន',
|
||||
s: 'ប៉ុន្មានវិនាទី',
|
||||
m: 'មួយនាទី',
|
||||
mm: '%d នាទី',
|
||||
h: 'មួយម៉ោង',
|
||||
hh: '%d ម៉ោង',
|
||||
d: 'មួយថ្ងៃ',
|
||||
dd: '%d ថ្ងៃ',
|
||||
M: 'មួយខែ',
|
||||
MM: '%d ខែ',
|
||||
y: 'មួយឆ្នាំ',
|
||||
yy: '%d ឆ្នាំ'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Kannada [kn]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'kn',
|
||||
weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
|
||||
months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
|
||||
weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
|
||||
monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
|
||||
weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'A h:mm',
|
||||
LTS: 'A h:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY, A h:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY, A h:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s ನಂತರ',
|
||||
past: '%s ಹಿಂದೆ',
|
||||
s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
|
||||
m: 'ಒಂದು ನಿಮಿಷ',
|
||||
mm: '%d ನಿಮಿಷ',
|
||||
h: 'ಒಂದು ಗಂಟೆ',
|
||||
hh: '%d ಗಂಟೆ',
|
||||
d: 'ಒಂದು ದಿನ',
|
||||
dd: '%d ದಿನ',
|
||||
M: 'ಒಂದು ತಿಂಗಳು',
|
||||
MM: '%d ತಿಂಗಳು',
|
||||
y: 'ಒಂದು ವರ್ಷ',
|
||||
yy: '%d ವರ್ಷ'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
// Korean [ko]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ko',
|
||||
weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
|
||||
weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
|
||||
weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
|
||||
months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
||||
monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'A h:mm',
|
||||
LTS: 'A h:mm:ss',
|
||||
L: 'YYYY.MM.DD.',
|
||||
LL: 'YYYY년 MMMM D일',
|
||||
LLL: 'YYYY년 MMMM D일 A h:mm',
|
||||
LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
|
||||
l: 'YYYY.MM.DD.',
|
||||
ll: 'YYYY년 MMMM D일',
|
||||
lll: 'YYYY년 MMMM D일 A h:mm',
|
||||
llll: 'YYYY년 MMMM D일 dddd A h:mm'
|
||||
},
|
||||
meridiem: function meridiem(hour) {
|
||||
return hour < 12 ? '오전' : '오후';
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s 후',
|
||||
past: '%s 전',
|
||||
s: '몇 초',
|
||||
m: '1분',
|
||||
mm: '%d분',
|
||||
h: '한 시간',
|
||||
hh: '%d시간',
|
||||
d: '하루',
|
||||
dd: '%d일',
|
||||
M: '한 달',
|
||||
MM: '%d달',
|
||||
y: '일 년',
|
||||
yy: '%d년'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Kurdish [ku]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ku',
|
||||
weekdays: 'یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه'.split('_'),
|
||||
months: 'کانونی دووەم_شوبات_ئازار_نیسان_ئایار_حوزەیران_تەمموز_ئاب_ئەیلوول_تشرینی یەكەم_تشرینی دووەم_كانونی یەکەم'.split('_'),
|
||||
weekStart: 6,
|
||||
weekdaysShort: 'یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه'.split('_'),
|
||||
monthsShort: 'کانونی دووەم_شوبات_ئازار_نیسان_ئایار_حوزەیران_تەمموز_ئاب_ئەیلوول_تشرینی یەكەم_تشرینی دووەم_كانونی یەکەم'.split('_'),
|
||||
weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'له %s',
|
||||
past: '%s',
|
||||
s: 'چهند چركهیهك',
|
||||
m: 'یهك خولهك',
|
||||
mm: '%d خولهك',
|
||||
h: 'یهك كاتژمێر',
|
||||
hh: '%d كاتژمێر',
|
||||
d: 'یهك ڕۆژ',
|
||||
dd: '%d ڕۆژ',
|
||||
M: 'یهك مانگ',
|
||||
MM: '%d مانگ',
|
||||
y: 'یهك ساڵ',
|
||||
yy: '%d ساڵ'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Kyrgyz [ky]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ky',
|
||||
weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
|
||||
months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
|
||||
monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
|
||||
weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s ичинде',
|
||||
past: '%s мурун',
|
||||
s: 'бирнече секунд',
|
||||
m: 'бир мүнөт',
|
||||
mm: '%d мүнөт',
|
||||
h: 'бир саат',
|
||||
hh: '%d саат',
|
||||
d: 'бир күн',
|
||||
dd: '%d күн',
|
||||
M: 'бир ай',
|
||||
MM: '%d ай',
|
||||
y: 'бир жыл',
|
||||
yy: '%d жыл'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Luxembourgish [lb]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'lb',
|
||||
weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
|
||||
months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
|
||||
monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
||||
weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'H:mm [Auer]',
|
||||
LTS: 'H:mm:ss [Auer]',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY H:mm [Auer]',
|
||||
LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Lao [lo]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'lo',
|
||||
weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
|
||||
months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
|
||||
weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
|
||||
monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
|
||||
weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'ວັນdddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'ອີກ %s',
|
||||
past: '%sຜ່ານມາ',
|
||||
s: 'ບໍ່ເທົ່າໃດວິນາທີ',
|
||||
m: '1 ນາທີ',
|
||||
mm: '%d ນາທີ',
|
||||
h: '1 ຊົ່ວໂມງ',
|
||||
hh: '%d ຊົ່ວໂມງ',
|
||||
d: '1 ມື້',
|
||||
dd: '%d ມື້',
|
||||
M: '1 ເດືອນ',
|
||||
MM: '%d ເດືອນ',
|
||||
y: '1 ປີ',
|
||||
yy: '%d ປີ'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
// Lithuanian [lt]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'lt',
|
||||
weekdays: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
|
||||
weekdaysShort: 'sek_pir_ant_tre_ket_pen_šeš'.split('_'),
|
||||
weekdaysMin: 's_p_a_t_k_pn_š'.split('_'),
|
||||
months: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
|
||||
monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
weekStart: 1,
|
||||
relativeTime: {
|
||||
future: 'už %s',
|
||||
past: 'prieš %s',
|
||||
s: 'kelias sekundes',
|
||||
m: 'minutę',
|
||||
mm: '%d minutes',
|
||||
h: 'valandą',
|
||||
hh: '%d valandas',
|
||||
d: 'dieną',
|
||||
dd: '%d dienas',
|
||||
M: 'menesį',
|
||||
MM: '%d mėnesius',
|
||||
y: 'metus',
|
||||
yy: '%d metus'
|
||||
},
|
||||
format: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'YYYY-MM-DD',
|
||||
LL: 'YYYY [m.] MMMM D [d.]',
|
||||
LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
||||
LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
|
||||
l: 'YYYY-MM-DD',
|
||||
ll: 'YYYY [m.] MMMM D [d.]',
|
||||
lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
||||
llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'YYYY-MM-DD',
|
||||
LL: 'YYYY [m.] MMMM D [d.]',
|
||||
LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
||||
LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
|
||||
l: 'YYYY-MM-DD',
|
||||
ll: 'YYYY [m.] MMMM D [d.]',
|
||||
lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
||||
llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Latvian [lv]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'lv',
|
||||
weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
|
||||
months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
|
||||
monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
|
||||
weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY.',
|
||||
LL: 'YYYY. [gada] D. MMMM',
|
||||
LLL: 'YYYY. [gada] D. MMMM, HH:mm',
|
||||
LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// Montenegrin [me]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'me',
|
||||
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
|
||||
months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
||||
monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
|
||||
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY H:mm',
|
||||
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Maori [mi]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'mi',
|
||||
weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
|
||||
months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
|
||||
monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
|
||||
weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY [i] HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'i roto i %s',
|
||||
past: '%s i mua',
|
||||
s: 'te hēkona ruarua',
|
||||
m: 'he meneti',
|
||||
mm: '%d meneti',
|
||||
h: 'te haora',
|
||||
hh: '%d haora',
|
||||
d: 'he ra',
|
||||
dd: '%d ra',
|
||||
M: 'he marama',
|
||||
MM: '%d marama',
|
||||
y: 'he tau',
|
||||
yy: '%d tau'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Macedonian [mk]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'mk',
|
||||
weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
|
||||
months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
|
||||
monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
|
||||
weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'D.MM.YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY H:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY H:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'после %s',
|
||||
past: 'пред %s',
|
||||
s: 'неколку секунди',
|
||||
m: 'минута',
|
||||
mm: '%d минути',
|
||||
h: 'час',
|
||||
hh: '%d часа',
|
||||
d: 'ден',
|
||||
dd: '%d дена',
|
||||
M: 'месец',
|
||||
MM: '%d месеци',
|
||||
y: 'година',
|
||||
yy: '%d години'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Malayalam [ml]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ml',
|
||||
weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
|
||||
months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
|
||||
weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
|
||||
monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
|
||||
weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'A h:mm -നു',
|
||||
LTS: 'A h:mm:ss -നു',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY, A h:mm -നു',
|
||||
LLLL: 'dddd, D MMMM YYYY, A h:mm -നു'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s കഴിഞ്ഞ്',
|
||||
past: '%s മുൻപ്',
|
||||
s: 'അൽപ നിമിഷങ്ങൾ',
|
||||
m: 'ഒരു മിനിറ്റ്',
|
||||
mm: '%d മിനിറ്റ്',
|
||||
h: 'ഒരു മണിക്കൂർ',
|
||||
hh: '%d മണിക്കൂർ',
|
||||
d: 'ഒരു ദിവസം',
|
||||
dd: '%d ദിവസം',
|
||||
M: 'ഒരു മാസം',
|
||||
MM: '%d മാസം',
|
||||
y: 'ഒരു വർഷം',
|
||||
yy: '%d വർഷം'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Mongolian [mn]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'mn',
|
||||
weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
|
||||
months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
|
||||
weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
|
||||
monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
|
||||
weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'YYYY-MM-DD',
|
||||
LL: 'YYYY оны MMMMын D',
|
||||
LLL: 'YYYY оны MMMMын D HH:mm',
|
||||
LLLL: 'dddd, YYYY оны MMMMын D HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s',
|
||||
past: '%s',
|
||||
s: 'саяхан',
|
||||
m: 'м',
|
||||
mm: '%dм',
|
||||
h: '1ц',
|
||||
hh: '%dц',
|
||||
d: '1ө',
|
||||
dd: '%dө',
|
||||
M: '1с',
|
||||
MM: '%dс',
|
||||
y: '1ж',
|
||||
yy: '%dж'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
// Marathi [mr]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'mr',
|
||||
weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
|
||||
months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
|
||||
weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
|
||||
monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
|
||||
weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'A h:mm वाजता',
|
||||
LTS: 'A h:mm:ss वाजता',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY, A h:mm वाजता',
|
||||
LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Malay [ms-my]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ms-my',
|
||||
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
|
||||
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
|
||||
weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH.mm',
|
||||
LTS: 'HH.mm.ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY [pukul] HH.mm',
|
||||
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'dalam %s',
|
||||
past: '%s yang lepas',
|
||||
s: 'beberapa saat',
|
||||
m: 'seminit',
|
||||
mm: '%d minit',
|
||||
h: 'sejam',
|
||||
hh: '%d jam',
|
||||
d: 'sehari',
|
||||
dd: '%d hari',
|
||||
M: 'sebulan',
|
||||
MM: '%d bulan',
|
||||
y: 'setahun',
|
||||
yy: '%d tahun'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Malay [ms]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ms',
|
||||
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
|
||||
weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
|
||||
weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
|
||||
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
|
||||
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'HH.mm',
|
||||
LTS: 'HH.mm.ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH.mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH.mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'dalam %s',
|
||||
past: '%s yang lepas',
|
||||
s: 'beberapa saat',
|
||||
m: 'seminit',
|
||||
mm: '%d minit',
|
||||
h: 'sejam',
|
||||
hh: '%d jam',
|
||||
d: 'sehari',
|
||||
dd: '%d hari',
|
||||
M: 'sebulan',
|
||||
MM: '%d bulan',
|
||||
y: 'setahun',
|
||||
yy: '%d tahun'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Maltese (Malta) [mt]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'mt',
|
||||
weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
|
||||
months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
|
||||
monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
|
||||
weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'f’ %s',
|
||||
past: '%s ilu',
|
||||
s: 'ftit sekondi',
|
||||
m: 'minuta',
|
||||
mm: '%d minuti',
|
||||
h: 'siegħa',
|
||||
hh: '%d siegħat',
|
||||
d: 'ġurnata',
|
||||
dd: '%d ġranet',
|
||||
M: 'xahar',
|
||||
MM: '%d xhur',
|
||||
y: 'sena',
|
||||
yy: '%d sni'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Burmese [my]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'my',
|
||||
weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
|
||||
months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
|
||||
monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
|
||||
weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'လာမည့် %s မှာ',
|
||||
past: 'လွန်ခဲ့သော %s က',
|
||||
s: 'စက္ကန်.အနည်းငယ်',
|
||||
m: 'တစ်မိနစ်',
|
||||
mm: '%d မိနစ်',
|
||||
h: 'တစ်နာရီ',
|
||||
hh: '%d နာရီ',
|
||||
d: 'တစ်ရက်',
|
||||
dd: '%d ရက်',
|
||||
M: 'တစ်လ',
|
||||
MM: '%d လ',
|
||||
y: 'တစ်နှစ်',
|
||||
yy: '%d နှစ်'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Norwegian Bokmål [nb]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'nb',
|
||||
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
||||
weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
||||
weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
|
||||
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
|
||||
monthsShort: 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY [kl.] HH:mm',
|
||||
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'om %s',
|
||||
past: '%s siden',
|
||||
s: 'noen sekunder',
|
||||
m: 'ett minutt',
|
||||
mm: '%d minutter',
|
||||
h: 'en time',
|
||||
hh: '%d timer',
|
||||
d: 'en dag',
|
||||
dd: '%d dager',
|
||||
M: 'en måned',
|
||||
MM: '%d måneder',
|
||||
y: 'ett år',
|
||||
yy: '%d år'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
// Nepalese [ne]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'ne',
|
||||
weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
|
||||
weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
|
||||
weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
|
||||
months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मे_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
|
||||
monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
|
||||
relativeTime: {
|
||||
future: '%s पछि',
|
||||
past: '%s अघि',
|
||||
s: 'सेकेन्ड',
|
||||
m: 'एक मिनेट',
|
||||
mm: '%d मिनेट',
|
||||
h: 'घन्टा',
|
||||
hh: '%d घन्टा',
|
||||
d: 'एक दिन',
|
||||
dd: '%d दिन',
|
||||
M: 'एक महिना',
|
||||
MM: '%d महिना',
|
||||
y: 'एक वर्ष',
|
||||
yy: '%d वर्ष'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return ("" + n).replace(/\d/g, function (i) {
|
||||
return '०१२३४५६७८९'[i];
|
||||
});
|
||||
},
|
||||
formats: {
|
||||
LT: 'Aको h:mm बजे',
|
||||
LTS: 'Aको h:mm:ss बजे',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY, Aको h:mm बजे',
|
||||
LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Dutch (Belgium) [nl-be]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'nl-be',
|
||||
weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
|
||||
months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
|
||||
monthsShort: 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
|
||||
weekStart: 1,
|
||||
weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
|
||||
weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'over %s',
|
||||
past: '%s geleden',
|
||||
s: 'een paar seconden',
|
||||
m: 'één minuut',
|
||||
mm: '%d minuten',
|
||||
h: 'één uur',
|
||||
hh: '%d uur',
|
||||
d: 'één dag',
|
||||
dd: '%d dagen',
|
||||
M: 'één maand',
|
||||
MM: '%d maanden',
|
||||
y: 'één jaar',
|
||||
yy: '%d jaar'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Dutch [nl]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'nl',
|
||||
weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
|
||||
weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
|
||||
weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
|
||||
months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
|
||||
monthsShort: 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD-MM-YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'over %s',
|
||||
past: '%s geleden',
|
||||
s: 'een paar seconden',
|
||||
m: 'een minuut',
|
||||
mm: '%d minuten',
|
||||
h: 'een uur',
|
||||
hh: '%d uur',
|
||||
d: 'een dag',
|
||||
dd: '%d dagen',
|
||||
M: 'een maand',
|
||||
MM: '%d maanden',
|
||||
y: 'een jaar',
|
||||
yy: '%d jaar'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Nynorsk [nn]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'nn',
|
||||
weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
|
||||
weekdaysShort: 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
|
||||
weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
|
||||
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
|
||||
monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
weekStart: 1,
|
||||
relativeTime: {
|
||||
future: 'om %s',
|
||||
past: 'for %s sidan',
|
||||
s: 'nokre sekund',
|
||||
m: 'eitt minutt',
|
||||
mm: '%d minutt',
|
||||
h: 'ein time',
|
||||
hh: '%d timar',
|
||||
d: 'ein dag',
|
||||
dd: '%d dagar',
|
||||
M: 'ein månad',
|
||||
MM: '%d månadar',
|
||||
y: 'eitt år',
|
||||
yy: '%d år'
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D. MMMM YYYY',
|
||||
LLL: 'D. MMMM YYYY [kl.] H:mm',
|
||||
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Occitan, lengadocian dialecte [oc-lnc]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'oc-lnc',
|
||||
weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split('_'),
|
||||
weekdaysShort: 'Dg_Dl_Dm_Dc_Dj_Dv_Ds'.split('_'),
|
||||
weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
|
||||
months: 'genièr_febrièr_març_abrial_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split('_'),
|
||||
monthsShort: 'gen_feb_març_abr_mai_junh_julh_ago_set_oct_nov_dec'.split('_'),
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: 'H:mm',
|
||||
LTS: 'H:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM [de] YYYY',
|
||||
LLL: 'D MMMM [de] YYYY [a] H:mm',
|
||||
LLLL: 'dddd D MMMM [de] YYYY [a] H:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'd\'aquí %s',
|
||||
past: 'fa %s',
|
||||
s: 'unas segondas',
|
||||
m: 'una minuta',
|
||||
mm: '%d minutas',
|
||||
h: 'una ora',
|
||||
hh: '%d oras',
|
||||
d: 'un jorn',
|
||||
dd: '%d jorns',
|
||||
M: 'un mes',
|
||||
MM: '%d meses',
|
||||
y: 'un an',
|
||||
yy: '%d ans'
|
||||
},
|
||||
ordinal: function ordinal(n) {
|
||||
return n + "\xBA";
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Punjabi (India) [pa-in]
|
||||
import dayjs from '../index';
|
||||
var locale = {
|
||||
name: 'pa-in',
|
||||
weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
|
||||
months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
|
||||
weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
|
||||
monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
|
||||
weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n;
|
||||
},
|
||||
formats: {
|
||||
LT: 'A h:mm ਵਜੇ',
|
||||
LTS: 'A h:mm:ss ਵਜੇ',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
|
||||
LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s ਵਿੱਚ',
|
||||
past: '%s ਪਿਛਲੇ',
|
||||
s: 'ਕੁਝ ਸਕਿੰਟ',
|
||||
m: 'ਇਕ ਮਿੰਟ',
|
||||
mm: '%d ਮਿੰਟ',
|
||||
h: 'ਇੱਕ ਘੰਟਾ',
|
||||
hh: '%d ਘੰਟੇ',
|
||||
d: 'ਇੱਕ ਦਿਨ',
|
||||
dd: '%d ਦਿਨ',
|
||||
M: 'ਇੱਕ ਮਹੀਨਾ',
|
||||
MM: '%d ਮਹੀਨੇ',
|
||||
y: 'ਇੱਕ ਸਾਲ',
|
||||
yy: '%d ਸਾਲ'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
// Polish [pl]
|
||||
import dayjs from '../index';
|
||||
|
||||
function plural(n) {
|
||||
return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1; // eslint-disable-line
|
||||
}
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
function translate(number, withoutSuffix, key) {
|
||||
var result = number + " ";
|
||||
|
||||
switch (key) {
|
||||
case 'm':
|
||||
return withoutSuffix ? 'minuta' : 'minutę';
|
||||
|
||||
case 'mm':
|
||||
return result + (plural(number) ? 'minuty' : 'minut');
|
||||
|
||||
case 'h':
|
||||
return withoutSuffix ? 'godzina' : 'godzinę';
|
||||
|
||||
case 'hh':
|
||||
return result + (plural(number) ? 'godziny' : 'godzin');
|
||||
|
||||
case 'MM':
|
||||
return result + (plural(number) ? 'miesiące' : 'miesięcy');
|
||||
|
||||
case 'yy':
|
||||
return result + (plural(number) ? 'lata' : 'lat');
|
||||
}
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
||||
|
||||
var locale = {
|
||||
name: 'pl',
|
||||
weekdays: 'Niedziela_Poniedziałek_Wtorek_Środa_Czwartek_Piątek_Sobota'.split('_'),
|
||||
weekdaysShort: 'Ndz_Pon_Wt_Śr_Czw_Pt_Sob'.split('_'),
|
||||
weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
|
||||
months: 'Styczeń_Luty_Marzec_Kwiecień_Maj_Czerwiec_Lipiec_Sierpień_Wrzesień_Październik_Listopad_Grudzień'.split('_'),
|
||||
monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
weekStart: 1,
|
||||
relativeTime: {
|
||||
future: 'za %s',
|
||||
past: '%s temu',
|
||||
s: 'kilka sekund',
|
||||
m: translate,
|
||||
mm: translate,
|
||||
h: translate,
|
||||
hh: translate,
|
||||
d: '1 dzień',
|
||||
dd: '%d dni',
|
||||
M: 'miesiąc',
|
||||
MM: translate,
|
||||
y: 'rok',
|
||||
yy: translate
|
||||
},
|
||||
formats: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD.MM.YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
export default locale;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user