@formatjs/intl-getcanonicallocales 3.2.12 → 3.3.1
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/LICENSE.md +0 -0
- package/README.md +0 -0
- package/index.d.ts +0 -10
- package/index.js +103 -33
- package/index.js.map +1 -1
- package/package.json +6 -1
- package/polyfill-force.d.ts +0 -0
- package/polyfill-force.js +105 -37
- package/polyfill-force.js.map +1 -1
- package/polyfill.d.ts +0 -0
- package/polyfill.iife.js +107 -41
- package/polyfill.js +107 -41
- package/polyfill.js.map +1 -1
- package/should-polyfill.d.ts +0 -2
- package/should-polyfill.js +1 -2
- package/should-polyfill.js.map +1 -1
package/LICENSE.md
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region packages/intl-getcanonicallocales/types.d.ts
|
|
2
1
|
export interface UnicodeLocaleId {
|
|
3
2
|
lang: UnicodeLanguageId;
|
|
4
3
|
extensions: Array<UnicodeExtension | TransformedExtension | PuExtension | OtherExtension>;
|
|
@@ -31,12 +30,8 @@ export interface OtherExtension extends Extension {
|
|
|
31
30
|
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
31
|
value: string;
|
|
33
32
|
}
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region packages/intl-getcanonicallocales/emitter.d.ts
|
|
36
33
|
export declare function emitUnicodeLanguageId(lang?: UnicodeLanguageId): string;
|
|
37
34
|
export declare function emitUnicodeLocaleId({ lang, extensions }: UnicodeLocaleId): string;
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region packages/intl-getcanonicallocales/parser.d.ts
|
|
40
35
|
export declare function isUnicodeLanguageSubtag(lang: string): boolean;
|
|
41
36
|
export declare function isStructurallyValidLanguageTag(tag: string): boolean;
|
|
42
37
|
export declare function isUnicodeRegionSubtag(region: string): boolean;
|
|
@@ -44,11 +39,6 @@ export declare function isUnicodeScriptSubtag(script: string): boolean;
|
|
|
44
39
|
export declare function isUnicodeVariantSubtag(variant: string): boolean;
|
|
45
40
|
export declare function parseUnicodeLanguageId(chunks: string[] | string): UnicodeLanguageId;
|
|
46
41
|
export declare function parseUnicodeLocaleId(locale: string): UnicodeLocaleId;
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.core@0.0.0/node_modules/@formatjs_generated/cldr.core/likelySubtags.d.ts
|
|
49
42
|
export declare const likelySubtags: Record<string, string>;
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region packages/intl-getcanonicallocales/index.d.ts
|
|
52
43
|
export declare function getCanonicalLocales(locales?: string[] | string | Intl.Locale | Intl.Locale[] | ArrayLike<string | Intl.Locale>): string[];
|
|
53
|
-
//#endregion
|
|
54
44
|
//# sourceMappingURL=index.d.ts.map
|