@js-joda/locale 4.2.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -2
- package/README.md +8 -8
- package/dist/js-joda-locale.js +1090 -1296
- package/dist/js-joda-locale.js.map +1 -1
- package/dist/js-joda-locale.min.js +9 -36
- package/dist/prebuilt/de/index.js +1100 -1306
- package/dist/prebuilt/de/index.js.map +1 -1
- package/dist/prebuilt/de-de/index.js +1100 -1306
- package/dist/prebuilt/de-de/index.js.map +1 -1
- package/dist/prebuilt/en/index.js +1101 -1307
- package/dist/prebuilt/en/index.js.map +1 -1
- package/dist/prebuilt/en-us/index.js +1100 -1306
- package/dist/prebuilt/en-us/index.js.map +1 -1
- package/dist/prebuilt/es/index.js +1101 -1307
- package/dist/prebuilt/es/index.js.map +1 -1
- package/dist/prebuilt/fr/index.js +1101 -1307
- package/dist/prebuilt/fr/index.js.map +1 -1
- package/dist/prebuilt/fr-fr/index.js +1100 -1306
- package/dist/prebuilt/fr-fr/index.js.map +1 -1
- package/dist/prebuilt/hi/index.js +1100 -1306
- package/dist/prebuilt/hi/index.js.map +1 -1
- package/dist/prebuilt/it/index.js +1100 -1306
- package/dist/prebuilt/it/index.js.map +1 -1
- package/dist/prebuilt/it-it/index.js +1100 -1306
- package/dist/prebuilt/it-it/index.js.map +1 -1
- package/dist/prebuilt/ja/index.js +1100 -1306
- package/dist/prebuilt/ja/index.js.map +1 -1
- package/dist/prebuilt/ja-jp/index.js +1100 -1306
- package/dist/prebuilt/ja-jp/index.js.map +1 -1
- package/dist/prebuilt/ko/index.js +1100 -1306
- package/dist/prebuilt/ko/index.js.map +1 -1
- package/dist/prebuilt/ro/index.js +1100 -1306
- package/dist/prebuilt/ro/index.js.map +1 -1
- package/dist/prebuilt/ru/index.js +4031 -0
- package/dist/prebuilt/ru/index.js.map +1 -0
- package/dist/prebuilt/sv/index.js +1100 -1306
- package/dist/prebuilt/sv/index.js.map +1 -1
- package/dist/prebuilt/sv-se/index.js +1100 -1306
- package/dist/prebuilt/sv-se/index.js.map +1 -1
- package/dist/prebuilt/zh/index.js +1100 -1306
- package/dist/prebuilt/zh/index.js.map +1 -1
- package/package.json +24 -17
- package/src/Locale.js +8 -0
- package/{dist → typings}/js-joda-locale.d.ts +12 -0
- package/.babelrc +0 -24
- package/build_package.default.json +0 -14
- package/build_package.prebuilt.json +0 -66
- package/examples/usage_browser.html +0 -111
- package/examples/usage_browser_build.html +0 -72
- package/examples/usage_es6.js +0 -15
- package/examples/usage_node.js +0 -38
- package/examples/usage_node_build.js +0 -48
- package/utils/CldrDataIgnorePlugin.js +0 -57
- package/utils/README_package.template.md +0 -13
- package/utils/buildWebpackConfig.js +0 -28
- package/utils/build_package.js +0 -170
- package/utils/create_packages.js +0 -136
- package/utils/load_cldrData.prebuilt.js +0 -18
- package/utils/publish_release.js +0 -151
- package/webpack.config.js +0 -88
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
### next (upcoming)
|
|
5
5
|
|
|
6
|
+
### 4.5.0
|
|
7
|
+
|
|
8
|
+
* [#574](https://github.com/js-joda/js-joda/pull/574) Reverting babel targets for UMD ([@pithu](https://github.com/pithu))
|
|
9
|
+
|
|
10
|
+
### 4.4.0
|
|
11
|
+
|
|
12
|
+
* [#568](https://github.com/js-joda/js-joda/pull/568) Add russian locale prebuilt ([@pithu](https://github.com/pithu))
|
|
13
|
+
|
|
14
|
+
### 4.3.0
|
|
15
|
+
|
|
16
|
+
* [#567](https://github.com/js-joda/js-joda/pull/567) Remove generated distributions files from git ([@pithu](https://github.com/pithu))
|
|
17
|
+
* [#564](https://github.com/js-joda/js-joda/pull/564) Fix travis for PR's from forks ([@pithu](https://github.com/pithu))
|
|
18
|
+
|
|
19
|
+
### 4.2.1
|
|
20
|
+
|
|
21
|
+
* [#560](https://github.com/js-joda/js-joda/pull/560) Add RFC_1123_DATE_TIME to locale ts definition ([@pithu](https://github.com/pithu))
|
|
22
|
+
|
|
6
23
|
### 4.2.0
|
|
7
24
|
|
|
8
25
|
* Upgrade dependencies #555 by @pithu
|
|
@@ -65,7 +82,7 @@ and some added prebuilt Locale packages for browser usage.
|
|
|
65
82
|
introduced new plugin concept
|
|
66
83
|
* Hide `use(plug)` concept from public api.
|
|
67
84
|
The function for extending js-joda is not exported anymore.
|
|
68
|
-
The code for extending js-joda `use(plug)` is not required anymore, because js-joda
|
|
85
|
+
The code for extending js-joda `use(plug)` is not required anymore, because @js-joda/locale automaticaly extends
|
|
69
86
|
js-joda when imported.
|
|
70
87
|
However, using `Locale` now requires extracting it from the `@js-joda/locale` module instead of `js-joda`
|
|
71
88
|
|
|
@@ -73,7 +90,7 @@ introduced new plugin concept
|
|
|
73
90
|
|
|
74
91
|
* add possibility to publish locale specific packages (e.g. @js-joda/locale_de, @js-joda/locale_en-US, ...)
|
|
75
92
|
|
|
76
|
-
* add prebuilt packages to main js-joda
|
|
93
|
+
* add prebuilt packages to main @js-joda/locale package (e.g. @js-joda/locale/dist/prebuilt/de/js-joda-locale, ...)
|
|
77
94
|
|
|
78
95
|
### 1.0.0
|
|
79
96
|
|
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ The cldr data is a peer dependency of this package, meaning it must be provided/
|
|
|
61
61
|
Since the complete cldr-data package can be quite large, the examples and documentation below show ways to dynamically
|
|
62
62
|
load or reduce the amount of data needed.
|
|
63
63
|
|
|
64
|
-
The implementation of `@js-joda/locale` also requires
|
|
64
|
+
The implementation of `@js-joda/locale` also requires `@js-joda/timezone` package e.g. to parse and output timezone names and offsets
|
|
65
65
|
|
|
66
66
|
### Node
|
|
67
67
|
|
|
@@ -75,13 +75,13 @@ Install joda using npm
|
|
|
75
75
|
npm install @js-joda/locale
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
To enable js-joda
|
|
78
|
+
To enable @js-joda/locale you will only need to require it, requiring it automatically registers the locale extensions in the base `js-joda`
|
|
79
79
|
Note: the `Locale` class is exported by `@js-joda/locale` so in order to use it, you will need to extract it from there.
|
|
80
80
|
|
|
81
81
|
```javascript
|
|
82
82
|
require('@js-joda/locale_<locale>')
|
|
83
83
|
```
|
|
84
|
-
since
|
|
84
|
+
since `@js-joda/locale` requires `@js-joda/timezone` it will also need to be provided, as shown
|
|
85
85
|
in the following examples
|
|
86
86
|
|
|
87
87
|
### es5
|
|
@@ -152,7 +152,7 @@ In `package.json` file define which parts of cldr-data to download and install
|
|
|
152
152
|
...
|
|
153
153
|
```
|
|
154
154
|
(data-coverage `core` only downloads data for the most popular languages / locales, while the urls-filter defines
|
|
155
|
-
which parts of cldr-data are required for
|
|
155
|
+
which parts of cldr-data are required for `@js-joda/locale` to work)
|
|
156
156
|
|
|
157
157
|
In e.g. webpack.config.js, define which parts/locales of the cldr-data files should end up in the final package
|
|
158
158
|
|
|
@@ -180,7 +180,7 @@ or (as we do for our prebuilt packages) use the CldrDataIgnorePlugin, provided i
|
|
|
180
180
|
|
|
181
181
|
```
|
|
182
182
|
where modulesDir is the absolute path to `node_modules` and `locales` is an array of locales to use as they can be defined
|
|
183
|
-
for the prebuilt packages. This will only load the absolutely required files for js-joda
|
|
183
|
+
for the prebuilt packages. This will only load the absolutely required files for @js-joda/locale, it is what we use internally
|
|
184
184
|
for the prebuilt packages and to build packages for our karma tests as well.
|
|
185
185
|
|
|
186
186
|
Depending on your usecase it might also be necessary to define a "faked" cldr-data module that loads
|
|
@@ -197,7 +197,7 @@ cldr-data load uses modules not available in browser (e.g. `fs`)
|
|
|
197
197
|
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
These should be the minimum required parts for js-joda
|
|
200
|
+
These should be the minimum required parts for @js-joda/locale
|
|
201
201
|
|
|
202
202
|
see the [karma.conf.js](karma.conf.js)
|
|
203
203
|
|
|
@@ -225,10 +225,10 @@ Week Information
|
|
|
225
225
|
- `c` for localized day-of-week
|
|
226
226
|
|
|
227
227
|
some of these are only partially localized, e.g. `Q` only if three or more `Q` are used, one or two `Q` also
|
|
228
|
-
work with plain
|
|
228
|
+
work with plain `@js-joda/core` without using `@js-joda/locale`
|
|
229
229
|
|
|
230
230
|
## License
|
|
231
231
|
|
|
232
|
-
* js-joda
|
|
232
|
+
* @js-joda/locale is released under the [BSD 3-clause license](LICENSE)
|
|
233
233
|
* The author of joda time and the lead architect of the JSR-310 is Stephen Colebourne.
|
|
234
234
|
|