@formatjs/intl-localematcher 0.3.0 → 0.4.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.
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
|
|
3
3
|
* @param locales
|
|
4
4
|
*/
|
|
5
|
-
export declare function CanonicalizeLocaleList(locales?: string | string[]): string[];
|
|
5
|
+
export declare function CanonicalizeLocaleList(locales?: string | readonly string[]): string[];
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface Opts {
|
|
2
2
|
algorithm: 'lookup' | 'best fit';
|
|
3
3
|
}
|
|
4
|
-
export declare function match(requestedLocales: string[], availableLocales: string[], defaultLocale: string, opts?: Opts): string;
|
|
4
|
+
export declare function match(requestedLocales: readonly string[], availableLocales: readonly string[], defaultLocale: string, opts?: Opts): string;
|
|
5
5
|
export { LookupSupportedLocales } from './abstract/LookupSupportedLocales';
|
|
6
6
|
export { ResolveLocale } from './abstract/ResolveLocale';
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
|
|
3
3
|
* @param locales
|
|
4
4
|
*/
|
|
5
|
-
export declare function CanonicalizeLocaleList(locales?: string | string[]): string[];
|
|
5
|
+
export declare function CanonicalizeLocaleList(locales?: string | readonly string[]): string[];
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface Opts {
|
|
2
2
|
algorithm: 'lookup' | 'best fit';
|
|
3
3
|
}
|
|
4
|
-
export declare function match(requestedLocales: string[], availableLocales: string[], defaultLocale: string, opts?: Opts): string;
|
|
4
|
+
export declare function match(requestedLocales: readonly string[], availableLocales: readonly string[], defaultLocale: string, opts?: Opts): string;
|
|
5
5
|
export { LookupSupportedLocales } from './abstract/LookupSupportedLocales';
|
|
6
6
|
export { ResolveLocale } from './abstract/ResolveLocale';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-localematcher",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Intl.LocaleMatcher ponyfill",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -17,14 +17,6 @@
|
|
|
17
17
|
"main": "index.js",
|
|
18
18
|
"module": "lib/index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
|
-
"exports": {
|
|
21
|
-
".": {
|
|
22
|
-
"types": "./index.d.ts",
|
|
23
|
-
"import": "./lib/index.js",
|
|
24
|
-
"default": "./index.js"
|
|
25
|
-
},
|
|
26
|
-
"./package.json": "./package.json"
|
|
27
|
-
},
|
|
28
20
|
"repository": {
|
|
29
21
|
"type": "git",
|
|
30
22
|
"url": "git+https://github.com/formatjs/formatjs.git"
|