@formatjs/intl-getcanonicallocales 3.2.11 → 3.2.12
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/index.d.ts +19 -22
- package/index.js +392 -156
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/polyfill-force.d.ts +1 -1
- package/polyfill-force.js +391 -157
- package/polyfill-force.js.map +1 -1
- package/polyfill.d.ts +1 -1
- package/polyfill.iife.js +9422 -158
- package/polyfill.js +391 -155
- package/polyfill.js.map +1 -1
- package/should-polyfill.d.ts +1 -2
package/index.d.ts
CHANGED
|
@@ -1,57 +1,54 @@
|
|
|
1
1
|
//#region packages/intl-getcanonicallocales/types.d.ts
|
|
2
|
-
interface UnicodeLocaleId {
|
|
2
|
+
export interface UnicodeLocaleId {
|
|
3
3
|
lang: UnicodeLanguageId;
|
|
4
4
|
extensions: Array<UnicodeExtension | TransformedExtension | PuExtension | OtherExtension>;
|
|
5
5
|
}
|
|
6
|
-
interface UnicodeLanguageId {
|
|
6
|
+
export interface UnicodeLanguageId {
|
|
7
7
|
lang: string;
|
|
8
8
|
script?: string;
|
|
9
9
|
region?: string;
|
|
10
10
|
variants: string[];
|
|
11
11
|
}
|
|
12
|
-
type KV = [string, string] | [string];
|
|
13
|
-
interface Extension {
|
|
12
|
+
export type KV = [string, string] | [string];
|
|
13
|
+
export interface Extension {
|
|
14
14
|
type: string;
|
|
15
15
|
}
|
|
16
|
-
interface UnicodeExtension extends Extension {
|
|
16
|
+
export interface UnicodeExtension extends Extension {
|
|
17
17
|
type: "u";
|
|
18
18
|
keywords: KV[];
|
|
19
19
|
attributes: string[];
|
|
20
20
|
}
|
|
21
|
-
interface TransformedExtension extends Extension {
|
|
21
|
+
export interface TransformedExtension extends Extension {
|
|
22
22
|
type: "t";
|
|
23
23
|
fields: KV[];
|
|
24
24
|
lang?: UnicodeLanguageId;
|
|
25
25
|
}
|
|
26
|
-
interface PuExtension extends Extension {
|
|
26
|
+
export interface PuExtension extends Extension {
|
|
27
27
|
type: "x";
|
|
28
28
|
value: string;
|
|
29
29
|
}
|
|
30
|
-
interface OtherExtension extends Extension {
|
|
30
|
+
export interface OtherExtension extends Extension {
|
|
31
31
|
type: "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "v" | "w" | "y" | "z";
|
|
32
32
|
value: string;
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region packages/intl-getcanonicallocales/emitter.d.ts
|
|
36
|
-
declare function emitUnicodeLanguageId(lang?: UnicodeLanguageId): string;
|
|
37
|
-
declare function emitUnicodeLocaleId({
|
|
38
|
-
lang,
|
|
39
|
-
extensions
|
|
40
|
-
}: UnicodeLocaleId): string;
|
|
36
|
+
export declare function emitUnicodeLanguageId(lang?: UnicodeLanguageId): string;
|
|
37
|
+
export declare function emitUnicodeLocaleId({ lang, extensions }: UnicodeLocaleId): string;
|
|
41
38
|
//#endregion
|
|
42
39
|
//#region packages/intl-getcanonicallocales/parser.d.ts
|
|
43
|
-
declare function isUnicodeLanguageSubtag(lang: string): boolean;
|
|
44
|
-
declare function isStructurallyValidLanguageTag(tag: string): boolean;
|
|
45
|
-
declare function isUnicodeRegionSubtag(region: string): boolean;
|
|
46
|
-
declare function isUnicodeScriptSubtag(script: string): boolean;
|
|
47
|
-
declare function
|
|
48
|
-
declare function
|
|
40
|
+
export declare function isUnicodeLanguageSubtag(lang: string): boolean;
|
|
41
|
+
export declare function isStructurallyValidLanguageTag(tag: string): boolean;
|
|
42
|
+
export declare function isUnicodeRegionSubtag(region: string): boolean;
|
|
43
|
+
export declare function isUnicodeScriptSubtag(script: string): boolean;
|
|
44
|
+
export declare function isUnicodeVariantSubtag(variant: string): boolean;
|
|
45
|
+
export declare function parseUnicodeLanguageId(chunks: string[] | string): UnicodeLanguageId;
|
|
46
|
+
export declare function parseUnicodeLocaleId(locale: string): UnicodeLocaleId;
|
|
49
47
|
//#endregion
|
|
50
48
|
//#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.core@0.0.0/node_modules/@formatjs_generated/cldr.core/likelySubtags.d.ts
|
|
51
|
-
declare const likelySubtags: Record<string, string>;
|
|
49
|
+
export declare const likelySubtags: Record<string, string>;
|
|
52
50
|
//#endregion
|
|
53
51
|
//#region packages/intl-getcanonicallocales/index.d.ts
|
|
54
|
-
declare function getCanonicalLocales(locales?: string[] | string | Intl.Locale | Intl.Locale[] | ArrayLike<string | Intl.Locale>): string[];
|
|
52
|
+
export declare function getCanonicalLocales(locales?: string[] | string | Intl.Locale | Intl.Locale[] | ArrayLike<string | Intl.Locale>): string[];
|
|
55
53
|
//#endregion
|
|
56
|
-
export { Extension, KV, OtherExtension, PuExtension, TransformedExtension, UnicodeExtension, UnicodeLanguageId, UnicodeLocaleId, emitUnicodeLanguageId, emitUnicodeLocaleId, getCanonicalLocales, isStructurallyValidLanguageTag, isUnicodeLanguageSubtag, isUnicodeRegionSubtag, isUnicodeScriptSubtag, likelySubtags, parseUnicodeLanguageId, parseUnicodeLocaleId };
|
|
57
54
|
//# sourceMappingURL=index.d.ts.map
|