@d3plus/locales 3.0.0-alpha.2 → 3.0.0-alpha.4
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/README.md +1 -19
- package/es/src/dictionaries/formatLocale.js +0 -8
- package/package.json +1 -1
- package/umd/d3plus-locales.full.js +1 -9
- package/umd/d3plus-locales.full.js.map +1 -1
- package/umd/d3plus-locales.full.min.js +1 -9
- package/umd/d3plus-locales.js +1 -9
- package/umd/d3plus-locales.js.map +1 -1
- package/umd/d3plus-locales.min.js +1 -9
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ import modules from "@d3plus/locales";
|
|
|
13
13
|
In vanilla JavaScript, a `d3plus` global is exported from the pre-bundled version:
|
|
14
14
|
|
|
15
15
|
```html
|
|
16
|
-
<script src="https://cdn.jsdelivr.net/npm/@d3plus/locales@3.0.0-alpha.
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/@d3plus/locales@3.0.0-alpha.4"></script>
|
|
17
17
|
<script>
|
|
18
18
|
console.log(d3plus);
|
|
19
19
|
</script>
|
|
@@ -28,14 +28,6 @@ Live examples can be found on [d3plus.org](https://d3plus.org/), which includes
|
|
|
28
28
|
#####
|
|
29
29
|
* [formatLocale](#formatLocale) - A set of default locale formatters used when assigning suffixes and currency in numbers.
|
|
30
30
|
|
|
31
|
-
| Name | Default | Description |
|
|
32
|
-
|---|---|---|
|
|
33
|
-
| separator | "" | Separation between the number with the suffix. |
|
|
34
|
-
| suffixes | [] | List of suffixes used to format numbers. |
|
|
35
|
-
| grouping | [3] | The array of group sizes, |
|
|
36
|
-
| delimiters | {thousands: ",", decimal: "."} | Decimal and group separators. |
|
|
37
|
-
| currency | ["$", ""] | The currency prefix and suffix. |
|
|
38
|
-
|
|
39
31
|
---
|
|
40
32
|
|
|
41
33
|
<a name="formatLocale"></a>
|
|
@@ -43,18 +35,8 @@ Live examples can be found on [d3plus.org](https://d3plus.org/), which includes
|
|
|
43
35
|
|
|
44
36
|
A set of default locale formatters used when assigning suffixes and currency in numbers.
|
|
45
37
|
|
|
46
|
-
| Name | Default | Description |
|
|
47
|
-
|---|---|---|
|
|
48
|
-
| separator | "" | Separation between the number with the suffix. |
|
|
49
|
-
| suffixes | [] | List of suffixes used to format numbers. |
|
|
50
|
-
| grouping | [3] | The array of group sizes, |
|
|
51
|
-
| delimiters | {thousands: ",", decimal: "."} | Decimal and group separators. |
|
|
52
|
-
| currency | ["$", ""] | The currency prefix and suffix. |
|
|
53
|
-
|
|
54
38
|
|
|
55
39
|
This is a global namespace
|
|
56
40
|
|
|
57
41
|
---
|
|
58
42
|
|
|
59
|
-
|
|
60
|
-
###### <sub>Documentation generated on Wed, 02 Apr 2025 20:59:31 GMT</sub>
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
@namespace {Object} formatLocale
|
|
3
3
|
@desc A set of default locale formatters used when assigning suffixes and currency in numbers.
|
|
4
|
-
*
|
|
5
|
-
* | Name | Default | Description |
|
|
6
|
-
* |---|---|---|
|
|
7
|
-
* | separator | "" | Separation between the number with the suffix. |
|
|
8
|
-
* | suffixes | [] | List of suffixes used to format numbers. |
|
|
9
|
-
* | grouping | [3] | The array of group sizes, |
|
|
10
|
-
* | delimiters | {thousands: ",", decimal: "."} | Decimal and group separators. |
|
|
11
|
-
* | currency | ["$", ""] | The currency prefix and suffix. |
|
|
12
4
|
*/ export default {
|
|
13
5
|
"ar-SA": {
|
|
14
6
|
separator: "",
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
@d3plus/locales v3.0.0-alpha.
|
|
2
|
+
@d3plus/locales v3.0.0-alpha.4
|
|
3
3
|
International localizations for number, date, and UI labels.
|
|
4
4
|
Copyright (c) 2025 D3plus - https://d3plus.org
|
|
5
5
|
@license MIT
|
|
@@ -195,14 +195,6 @@
|
|
|
195
195
|
/**
|
|
196
196
|
@namespace {Object} formatLocale
|
|
197
197
|
@desc A set of default locale formatters used when assigning suffixes and currency in numbers.
|
|
198
|
-
*
|
|
199
|
-
* | Name | Default | Description |
|
|
200
|
-
* |---|---|---|
|
|
201
|
-
* | separator | "" | Separation between the number with the suffix. |
|
|
202
|
-
* | suffixes | [] | List of suffixes used to format numbers. |
|
|
203
|
-
* | grouping | [3] | The array of group sizes, |
|
|
204
|
-
* | delimiters | {thousands: ",", decimal: "."} | Decimal and group separators. |
|
|
205
|
-
* | currency | ["$", ""] | The currency prefix and suffix. |
|
|
206
198
|
*/ var formatLocale = {
|
|
207
199
|
"ar-SA": {
|
|
208
200
|
separator: "",
|