electron 21.2.2 → 21.3.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/README.md +1 -1
- package/checksums.json +75 -75
- package/electron.d.ts +64 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) an
|
|
|
12
12
|
[Chromium](https://www.chromium.org) and is used by the [Atom
|
|
13
13
|
editor](https://github.com/atom/atom) and many other [apps](https://electronjs.org/apps).
|
|
14
14
|
|
|
15
|
-
Follow [@
|
|
15
|
+
Follow [@electronjs](https://twitter.com/electronjs) on Twitter for important
|
|
16
16
|
announcements.
|
|
17
17
|
|
|
18
18
|
This project adheres to the Contributor Covenant
|
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v21.
|
|
3
|
-
"chromedriver-v21.
|
|
4
|
-
"chromedriver-v21.
|
|
5
|
-
"chromedriver-v21.
|
|
6
|
-
"chromedriver-v21.
|
|
7
|
-
"chromedriver-v21.
|
|
8
|
-
"chromedriver-v21.
|
|
9
|
-
"chromedriver-v21.
|
|
10
|
-
"chromedriver-v21.
|
|
11
|
-
"chromedriver-v21.
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-v21.
|
|
14
|
-
"electron-v21.
|
|
15
|
-
"electron-v21.
|
|
16
|
-
"electron-v21.
|
|
17
|
-
"electron-v21.
|
|
18
|
-
"electron-v21.
|
|
19
|
-
"electron-v21.
|
|
20
|
-
"electron-v21.
|
|
21
|
-
"electron-v21.
|
|
22
|
-
"electron-v21.
|
|
23
|
-
"electron-v21.
|
|
24
|
-
"electron-v21.
|
|
25
|
-
"electron-v21.
|
|
26
|
-
"electron-v21.
|
|
27
|
-
"electron-v21.
|
|
28
|
-
"electron-v21.
|
|
29
|
-
"electron-v21.
|
|
30
|
-
"electron-v21.
|
|
31
|
-
"electron-v21.
|
|
32
|
-
"electron-v21.
|
|
33
|
-
"electron-v21.
|
|
34
|
-
"electron-v21.
|
|
35
|
-
"electron-v21.
|
|
36
|
-
"electron-v21.
|
|
37
|
-
"electron-v21.
|
|
38
|
-
"electron-v21.
|
|
39
|
-
"electron-v21.
|
|
40
|
-
"electron-v21.
|
|
41
|
-
"electron-v21.
|
|
42
|
-
"electron-v21.
|
|
43
|
-
"electron-v21.
|
|
44
|
-
"electron-v21.
|
|
45
|
-
"electron-v21.
|
|
46
|
-
"electron-v21.
|
|
47
|
-
"electron-v21.
|
|
48
|
-
"electron-v21.
|
|
49
|
-
"electron-v21.
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v21.
|
|
52
|
-
"ffmpeg-v21.
|
|
53
|
-
"ffmpeg-v21.
|
|
54
|
-
"ffmpeg-v21.
|
|
55
|
-
"ffmpeg-v21.
|
|
56
|
-
"ffmpeg-v21.
|
|
57
|
-
"ffmpeg-v21.
|
|
58
|
-
"ffmpeg-v21.
|
|
59
|
-
"ffmpeg-v21.
|
|
60
|
-
"ffmpeg-v21.
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-v21.
|
|
63
|
-
"libcxx-objects-v21.
|
|
64
|
-
"libcxx-objects-v21.
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-v21.
|
|
68
|
-
"mksnapshot-v21.
|
|
69
|
-
"mksnapshot-v21.
|
|
70
|
-
"mksnapshot-v21.
|
|
71
|
-
"mksnapshot-v21.
|
|
72
|
-
"mksnapshot-v21.
|
|
73
|
-
"mksnapshot-v21.
|
|
74
|
-
"mksnapshot-v21.
|
|
75
|
-
"mksnapshot-v21.
|
|
76
|
-
"mksnapshot-v21.
|
|
2
|
+
"chromedriver-v21.3.0-darwin-arm64.zip": "865bfe6d07d744455f323b33cdda37075cb05e09e7935edb0089605307d25c9d",
|
|
3
|
+
"chromedriver-v21.3.0-darwin-x64.zip": "a99ae9e1c6da47f4e7bfd53fc0b7b88b6caff46d5eb0768272170f86a4d09b8d",
|
|
4
|
+
"chromedriver-v21.3.0-linux-arm64.zip": "2f05531dfd1a7d2ed676c17f1fd35f4ab650742363c204f2499a7fe691f691cd",
|
|
5
|
+
"chromedriver-v21.3.0-linux-armv7l.zip": "4625698d9679aac85b5d4f05e06b37684d897d65bdd3e41fdc88fbceb5aa3766",
|
|
6
|
+
"chromedriver-v21.3.0-linux-x64.zip": "506cf4c6b4ecea56e2329221390d4b9e9d9c04ad1f65beb12432c1db577416c9",
|
|
7
|
+
"chromedriver-v21.3.0-mas-arm64.zip": "40c36ffd8d2a09ea33e551dbea4ec8c5a23263658127dad3ed0d55cb08c6671d",
|
|
8
|
+
"chromedriver-v21.3.0-mas-x64.zip": "42fd6918f5fb9948fa048a8ffb471783ed5ee5fc759dfda7afd201a5736cac94",
|
|
9
|
+
"chromedriver-v21.3.0-win32-arm64.zip": "ec0f9783d2a3cc3c776208294006ef8e0c38a3f236cf164a71fd344d564d730b",
|
|
10
|
+
"chromedriver-v21.3.0-win32-ia32.zip": "d7128813dbaa2559e61fea3c077dbb0d23fd8e2724cac851bdfe56c8edb3d576",
|
|
11
|
+
"chromedriver-v21.3.0-win32-x64.zip": "8c85df5fe87bd01283c191ab2e20fa450b0b233785e6acb553ac124f02dddc07",
|
|
12
|
+
"electron-api.json": "62c07ceb8161eff49fec21c2bdd26315bb3a4962d200cc1140f67224fe7ac195",
|
|
13
|
+
"electron-v21.3.0-darwin-arm64-dsym-snapshot.zip": "1c42bbb982bcf207e4e445ebef8d1d8b529c8c6fe393b9401bef8e2eb048e73a",
|
|
14
|
+
"electron-v21.3.0-darwin-arm64-dsym.zip": "26cb4a7a7e6b3141a834cbc279489612783ede283c7ee118a829df20b859c870",
|
|
15
|
+
"electron-v21.3.0-darwin-arm64-symbols.zip": "ccb12b6b979373eae0254dcccd7a7264b1f2289cc061468087e11860501d744c",
|
|
16
|
+
"electron-v21.3.0-darwin-arm64.zip": "5f8706fe1a18ca96eae5b4994793b37269808b1a2f5aa22933d76151d0d38056",
|
|
17
|
+
"electron-v21.3.0-darwin-x64-dsym-snapshot.zip": "31852143b8d57411516f596fc2460f42a5cf113a229db5ca799ead6eee59afac",
|
|
18
|
+
"electron-v21.3.0-darwin-x64-dsym.zip": "03413a86c444fc7046483f8860c4333917aec6445701c1b75366253242c4799f",
|
|
19
|
+
"electron-v21.3.0-darwin-x64-symbols.zip": "9a8f8ae3f8c276d90b1d2f41072e10535e94bed1248efd1dcda1566c5b799df3",
|
|
20
|
+
"electron-v21.3.0-darwin-x64.zip": "96091dfd616e7194ce323bbdf0f8fdeb60e3d7f6d19e226bb6cea416f3d7c556",
|
|
21
|
+
"electron-v21.3.0-linux-arm64-debug.zip": "d2ddb333ffee5ad2cd536967713334be531f31f6b43993ac46982fae711295e7",
|
|
22
|
+
"electron-v21.3.0-linux-arm64-symbols.zip": "870bf59ab7c8d5043ded999b0a234c738ad92a005f7187a7a60ea0c87ea2c48e",
|
|
23
|
+
"electron-v21.3.0-linux-arm64.zip": "5becdd5373b878cb34c7cab26e4340f756d0d44c1097346c6c71a2c6d9447d15",
|
|
24
|
+
"electron-v21.3.0-linux-armv7l-debug.zip": "d2ddb333ffee5ad2cd536967713334be531f31f6b43993ac46982fae711295e7",
|
|
25
|
+
"electron-v21.3.0-linux-armv7l-symbols.zip": "380510caefda592d2286a7c9d906d6874acfead08b49a6ad5d165bde352003bb",
|
|
26
|
+
"electron-v21.3.0-linux-armv7l.zip": "751ace3640ca49576b0fcb6e48fc7c55e4b4e61abb7d7305b44f605997b4b346",
|
|
27
|
+
"electron-v21.3.0-linux-x64-debug.zip": "27a128ffd947ad654b6031ffb493b8d2841b2fcba212e3788aca09c5f8d239a4",
|
|
28
|
+
"electron-v21.3.0-linux-x64-symbols.zip": "a79e7abb8374a5778a99de9ea5ca2762cd4c2a84847159004c45e01f6a55c767",
|
|
29
|
+
"electron-v21.3.0-linux-x64.zip": "bbe764ddaf50483014f215c3ef3822ad0a14b8f34218978ff194401c3021be0c",
|
|
30
|
+
"electron-v21.3.0-mas-arm64-dsym-snapshot.zip": "1c42bbb982bcf207e4e445ebef8d1d8b529c8c6fe393b9401bef8e2eb048e73a",
|
|
31
|
+
"electron-v21.3.0-mas-arm64-dsym.zip": "99c54cdaadda14ad77cf3b55d23438bab8e3824c5cd0af6e5edf02bc04716d25",
|
|
32
|
+
"electron-v21.3.0-mas-arm64-symbols.zip": "f13c49e3cfa35a75ed98522586b7b873510d87f14a72a60fc390b4728533c8ca",
|
|
33
|
+
"electron-v21.3.0-mas-arm64.zip": "368b8123cdf6bb5c5045e407a6af530346882f57c5c5688c1cb2c3dd8cf2e2d9",
|
|
34
|
+
"electron-v21.3.0-mas-x64-dsym-snapshot.zip": "8f4edbff9db017781f596746b4cb45c940e2dfc905e2a94dcfd96eb5f38e4db0",
|
|
35
|
+
"electron-v21.3.0-mas-x64-dsym.zip": "c670bdb55b9b9e0804edaeed9a71a47d85ca6ef8354eabfe41899421de050c96",
|
|
36
|
+
"electron-v21.3.0-mas-x64-symbols.zip": "bec40ed39b2105c18ac39ef187e5909e2e162809e87526bd4fb377cbe3143144",
|
|
37
|
+
"electron-v21.3.0-mas-x64.zip": "d20dbc0485d4e1347335d5e046c2a94495cb292f9cfc3912256b117de9b425a3",
|
|
38
|
+
"electron-v21.3.0-win32-arm64-pdb.zip": "dfee95179d3480325b4067cc7d20acdebc7a40d812cf3535d828e62146394389",
|
|
39
|
+
"electron-v21.3.0-win32-arm64-symbols.zip": "7fc2eaf12efd7f0d5015001648e5a8638f33d3e853542a2ca8ede4d33361fdaa",
|
|
40
|
+
"electron-v21.3.0-win32-arm64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
41
|
+
"electron-v21.3.0-win32-arm64.zip": "0485cfcb5ef0627629f7058012f93308446a5a38d7a88fca1679c8adb22a6c56",
|
|
42
|
+
"electron-v21.3.0-win32-ia32-pdb.zip": "1b2a2bfb7c9f5e4c9254c28de3f5a6a14d50620866635ac4afdc99b8b9c7a06a",
|
|
43
|
+
"electron-v21.3.0-win32-ia32-symbols.zip": "9a0d97678320ac8d567d84cc671802145217ccb099d762550817c76b145d53c3",
|
|
44
|
+
"electron-v21.3.0-win32-ia32-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
45
|
+
"electron-v21.3.0-win32-ia32.zip": "9f9b36aa01709d8c0b8b521264222dc86181a0a8191e4458dcec687c6233868d",
|
|
46
|
+
"electron-v21.3.0-win32-x64-pdb.zip": "9b21766f9ecb9581d728ead36f0b8c84906dcf094fe1cde2bb3bc5579afff5d0",
|
|
47
|
+
"electron-v21.3.0-win32-x64-symbols.zip": "28351bbb342e22dd1b492d748ea0d4a8b9a10365cb32e9e7e1400fcdc077482e",
|
|
48
|
+
"electron-v21.3.0-win32-x64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
49
|
+
"electron-v21.3.0-win32-x64.zip": "ac5e79ddc77422fa754a74bc94b789d75670c964e58845f84523b4fe5ea493a3",
|
|
50
|
+
"electron.d.ts": "e91c01a53c2bb799d8ce0e6b01583c012806f5304c54c921132294d93cc23d60",
|
|
51
|
+
"ffmpeg-v21.3.0-darwin-arm64.zip": "adbecf2c6fca257d4ce6d812230defca427cc3c4ce6950efde4121fe8593a8b7",
|
|
52
|
+
"ffmpeg-v21.3.0-darwin-x64.zip": "624106ed91736920bcc018eae7a337edcc92cd14e024eb783addaafee173cd17",
|
|
53
|
+
"ffmpeg-v21.3.0-linux-arm64.zip": "65b8f67aab4fffbc6fc1f88db82b5fcfdfee86500ca68ff52d57408fd222f078",
|
|
54
|
+
"ffmpeg-v21.3.0-linux-armv7l.zip": "dbfbf0783cdfab3b80b141d0e874b30588deecef51ca7139b64d7ba91ba6d32d",
|
|
55
|
+
"ffmpeg-v21.3.0-linux-x64.zip": "72ef3ded2cae96bedb355af48258713f62bf101a9fc0ff9b0ddc2ffd77d8e17d",
|
|
56
|
+
"ffmpeg-v21.3.0-mas-arm64.zip": "bcbdb14183e166da3f53af6a6f52cee85713ffb330ad7f4861af7f68a893506b",
|
|
57
|
+
"ffmpeg-v21.3.0-mas-x64.zip": "276564f0ef7e4e1449fc620ef35ce5c30c9e4779ff858f6fbaaad4ee4e250730",
|
|
58
|
+
"ffmpeg-v21.3.0-win32-arm64.zip": "5d3e91f438846dfd269287544ffe939f17f9cdbbfbc9544c9d4e79c024cbb0bb",
|
|
59
|
+
"ffmpeg-v21.3.0-win32-ia32.zip": "14fb98bed2ea0122664f991fcaa5c91f854c7ea046e81b0e3d8d9dc327ea33e6",
|
|
60
|
+
"ffmpeg-v21.3.0-win32-x64.zip": "bfb68b115a52c59ae92b569e20bc1d605744011c503e0037900e18d3baef6124",
|
|
61
|
+
"hunspell_dictionaries.zip": "08dd0730dc18cfd360bb675e6a2f0a3d20548346879d9586473b28f21de28557",
|
|
62
|
+
"libcxx-objects-v21.3.0-linux-arm64.zip": "67d670102b67348d1f1b51176a6d38abf9b756a21ea5ec52047ecb0069cc1707",
|
|
63
|
+
"libcxx-objects-v21.3.0-linux-armv7l.zip": "48cee65585b34ebe307f5f9f46298015c54b6bb703e7fca604982e772b464e96",
|
|
64
|
+
"libcxx-objects-v21.3.0-linux-x64.zip": "b45447170e2ebda889ac647ab1401985a0e079fee1ebbe83b8d9747639cd29c2",
|
|
65
|
+
"libcxx_headers.zip": "b51b1bcb63efb9251c3c5f2252f76fd68c2f532bb20d0df96a3102f89627ab79",
|
|
66
|
+
"libcxxabi_headers.zip": "40a5ab14f793f5ca6a3f3806bfd4adc35a2f2d6a075f6c779609f3b3a72fc5af",
|
|
67
|
+
"mksnapshot-v21.3.0-darwin-arm64.zip": "615bdf0c25a7f9dc355696b293bb5e935ed06f05b934e6cd400c906405cedd2f",
|
|
68
|
+
"mksnapshot-v21.3.0-darwin-x64.zip": "335d3f58104b8f475071f0d22a285f33c3a8468987e686f05505af1f703d65ba",
|
|
69
|
+
"mksnapshot-v21.3.0-linux-arm64-x64.zip": "4ac2800c4b82fedbd56d738e3aad8ef6985d7a9b4455fc9f67f990d311372c5d",
|
|
70
|
+
"mksnapshot-v21.3.0-linux-armv7l-x64.zip": "270b2a8c8e317008f127bc419cf2c61c035e8f1075baf736927844fd0d1ec921",
|
|
71
|
+
"mksnapshot-v21.3.0-linux-x64.zip": "6dc31e22d1f7d2a9fee26b50f5b335377ab72032d3340cfbd5a7cf3df81f6db5",
|
|
72
|
+
"mksnapshot-v21.3.0-mas-arm64.zip": "9a4796ae90910a6dc5eab1da688bdd70a2ac5ffeb0135c84878065e7550c8b61",
|
|
73
|
+
"mksnapshot-v21.3.0-mas-x64.zip": "b653a3db8984f169eca3a7c508325a4cf38cded9aa8ccb9ba1374084c3ba0cfa",
|
|
74
|
+
"mksnapshot-v21.3.0-win32-arm64-x64.zip": "a28d82cbdd496d5f3722defd6d57741dac2578a809225405f998e39233720551",
|
|
75
|
+
"mksnapshot-v21.3.0-win32-ia32.zip": "255edb2b1fa9a682eb46243f24a0b7bb8155b5bc145f2e2fd58cbe08ab4b0670",
|
|
76
|
+
"mksnapshot-v21.3.0-win32-x64.zip": "b9f8b1563cbdc32b9bd4241cb4fb77dcbd8d6be0773a12e2f40ab144567a46ae"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 21.3.0
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/electron-typescript-definitions
|
|
@@ -869,7 +869,7 @@ declare namespace Electron {
|
|
|
869
869
|
* response:
|
|
870
870
|
*
|
|
871
871
|
* Using `basic` should be preferred if only basic information like `vendorId` or
|
|
872
|
-
* `
|
|
872
|
+
* `deviceId` is needed.
|
|
873
873
|
*/
|
|
874
874
|
getGPUInfo(infoType: 'basic' | 'complete'): Promise<unknown>;
|
|
875
875
|
/**
|
|
@@ -895,6 +895,9 @@ declare namespace Electron {
|
|
|
895
895
|
* `locales` folder.
|
|
896
896
|
*
|
|
897
897
|
* **Note:** This API must be called after the `ready` event is emitted.
|
|
898
|
+
*
|
|
899
|
+
* **Note:** To see example return values of this API compared to other locale and
|
|
900
|
+
* language APIs, see `app.getPreferredSystemLanguages()`.
|
|
898
901
|
*/
|
|
899
902
|
getLocale(): string;
|
|
900
903
|
/**
|
|
@@ -958,11 +961,69 @@ declare namespace Electron {
|
|
|
958
961
|
* `app.setAppLogsPath()` without a `path` parameter.
|
|
959
962
|
*/
|
|
960
963
|
getPath(name: 'home' | 'appData' | 'userData' | 'sessionData' | 'temp' | 'exe' | 'module' | 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos' | 'recent' | 'logs' | 'crashDumps'): string;
|
|
964
|
+
/**
|
|
965
|
+
* The user's preferred system languages from most preferred to least preferred,
|
|
966
|
+
* including the country codes if applicable. A user can modify and add to this
|
|
967
|
+
* list on Windows or macOS through the Language and Region settings.
|
|
968
|
+
*
|
|
969
|
+
* The API uses `GlobalizationPreferences` (with a fallback to
|
|
970
|
+
* `GetSystemPreferredUILanguages`) on Windows, `\[NSLocale preferredLanguages\]`
|
|
971
|
+
* on macOS, and `g_get_language_names` on Linux.
|
|
972
|
+
*
|
|
973
|
+
* This API can be used for purposes such as deciding what language to present the
|
|
974
|
+
* application in.
|
|
975
|
+
*
|
|
976
|
+
* Here are some examples of return values of the various language and locale APIs
|
|
977
|
+
* with different configurations:
|
|
978
|
+
*
|
|
979
|
+
* * For Windows, where the application locale is German, the regional format is
|
|
980
|
+
* Finnish (Finland), and the preferred system languages from most to least
|
|
981
|
+
* preferred are French (Canada), English (US), Simplified Chinese (China),
|
|
982
|
+
* Finnish, and Spanish (Latin America):
|
|
983
|
+
* * `app.getLocale()` returns `'de'`
|
|
984
|
+
* * `app.getSystemLocale()` returns `'fi-FI'`
|
|
985
|
+
* * `app.getPreferredSystemLanguages()` returns `['fr-CA', 'en-US',
|
|
986
|
+
* 'zh-Hans-CN', 'fi', 'es-419']`
|
|
987
|
+
* * On macOS, where the application locale is German, the region is Finland, and
|
|
988
|
+
* the preferred system languages from most to least preferred are French (Canada),
|
|
989
|
+
* English (US), Simplified Chinese, and Spanish (Latin America):
|
|
990
|
+
* * `app.getLocale()` returns `'de'`
|
|
991
|
+
* * `app.getSystemLocale()` returns `'fr-FI'`
|
|
992
|
+
* * `app.getPreferredSystemLanguages()` returns `['fr-CA', 'en-US',
|
|
993
|
+
* 'zh-Hans-FI', 'es-419']`
|
|
994
|
+
*
|
|
995
|
+
* Both the available languages and regions and the possible return values differ
|
|
996
|
+
* between the two operating systems.
|
|
997
|
+
*
|
|
998
|
+
* As can be seen with the example above, on Windows, it is possible that a
|
|
999
|
+
* preferred system language has no country code, and that one of the preferred
|
|
1000
|
+
* system languages corresponds with the language used for the regional format. On
|
|
1001
|
+
* macOS, the region serves more as a default country code: the user doesn't need
|
|
1002
|
+
* to have Finnish as a preferred language to use Finland as the region,and the
|
|
1003
|
+
* country code `FI` is used as the country code for preferred system languages
|
|
1004
|
+
* that do not have associated countries in the language name.
|
|
1005
|
+
*/
|
|
1006
|
+
getPreferredSystemLanguages(): Array<'app.getLocale()' | 'app.getSystemLocale()' | 'app.getPreferredSystemLanguages()' | 'app.getLocale()' | 'app.getSystemLocale()' | 'app.getPreferredSystemLanguages()'>;
|
|
961
1007
|
/**
|
|
962
1008
|
* The current system locale. On Windows and Linux, it is fetched using Chromium's
|
|
963
|
-
* `i18n` library. On macOS,
|
|
1009
|
+
* `i18n` library. On macOS, `[NSLocale currentLocale]` is used instead. To get the
|
|
1010
|
+
* user's current system language, which is not always the same as the locale, it
|
|
1011
|
+
* is better to use `app.getPreferredSystemLanguages()`.
|
|
1012
|
+
*
|
|
1013
|
+
* Different operating systems also use the regional data differently:
|
|
1014
|
+
*
|
|
1015
|
+
* * Windows 11 uses the regional format for numbers, dates, and times.
|
|
1016
|
+
* * macOS Monterey uses the region for formatting numbers, dates, times, and for
|
|
1017
|
+
* selecting the currency symbol to use.
|
|
1018
|
+
*
|
|
1019
|
+
* Therefore, this API can be used for purposes such as choosing a format for
|
|
1020
|
+
* rendering dates and times in a calendar app, especially when the developer wants
|
|
1021
|
+
* the format to be consistent with the OS.
|
|
964
1022
|
*
|
|
965
1023
|
* **Note:** This API must be called after the `ready` event is emitted.
|
|
1024
|
+
*
|
|
1025
|
+
* **Note:** To see example return values of this API compared to other locale and
|
|
1026
|
+
* language APIs, see `app.getPreferredSystemLanguages()`.
|
|
966
1027
|
*/
|
|
967
1028
|
getSystemLocale(): string;
|
|
968
1029
|
/**
|
package/package.json
CHANGED