@formatjs/intl-locale 3.0.4 → 3.0.5

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.
@@ -1,35 +0,0 @@
1
- import '@formatjs/intl-getcanonicallocales/polyfill'
2
- import {Locale} from '../'
3
- const testDataMinimal: Record<string, string> = {
4
- // Undefined primary language.
5
- // und: 'en',
6
- // 'und-Thai': 'th',
7
- // 'und-419': 'es-419',
8
- // 'und-150': 'ru-150',
9
- // 'und-AT': 'de-AT',
10
-
11
- // https://unicode-org.atlassian.net/browse/ICU-13786
12
- 'aae-Latn-IT': 'aae-Latn-IT',
13
- 'aae-Thai-CO': 'aae-Thai-CO',
14
-
15
- // https://unicode-org.atlassian.net/browse/ICU-10220
16
- // https://unicode-org.atlassian.net/browse/ICU-12345
17
- // 'und-CW': 'pap-CW',
18
- // 'und-US': 'en',
19
- // 'zh-Hant': 'zh-TW',
20
- 'zh-Hani': 'zh-Hani',
21
- }
22
-
23
- describe('minimize', function () {
24
- for (const tag in testDataMinimal) {
25
- const minimal = testDataMinimal[tag]
26
- it(`${minimal} is indeed minimal`, function () {
27
- // Assert the |minimal| tag is indeed minimal.
28
- expect(new Locale(minimal).minimize().toString()).toBe(minimal)
29
- })
30
- it(`${tag} -> ${minimal}`, function () {
31
- // Assert RemoveLikelySubtags(tag) returns |minimal|.
32
- expect(new Locale(tag).minimize().toString()).toBe(minimal)
33
- })
34
- }
35
- })
package/tsconfig.json DELETED
@@ -1,5 +0,0 @@
1
- // @generated
2
- {
3
- // This is purely for IDE, not for compilation
4
- "extends": "../../tsconfig.json"
5
- }