@wix/site-service-locale 1.0.2 → 1.0.4
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 +6 -3
- package/cjs/build/definition/index.d.ts +2 -0
- package/cjs/build/definition/index.js.map +1 -1
- package/cjs/build/implementations/localeService.js +8 -1
- package/cjs/build/implementations/localeService.js.map +1 -1
- package/cjs/package.json +1 -1
- package/definition/package.json +1 -1
- package/dist/definition/index.d.ts +2 -0
- package/dist/definition/index.js.map +1 -1
- package/dist/implementations/localeService.js +8 -1
- package/dist/implementations/localeService.js.map +1 -1
- package/implementations/package.json +1 -1
- package/package.json +16 -16
- package/src/definition/index.ts +7 -5
- package/src/implementations/localeService.ts +29 -22
- package/src/types/index.ts +182 -182
- package/types/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @wix/site-service-locale
|
|
2
2
|
|
|
3
|
-
A thin signal-backed service that exposes the current site language and
|
|
3
|
+
A thin signal-backed service that exposes the current site language, text direction, and regional locale.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -21,6 +21,7 @@ const service = servicesManager.getService(LocaleDefinition)
|
|
|
21
21
|
// getters:
|
|
22
22
|
service.language
|
|
23
23
|
service.direction
|
|
24
|
+
service.locale
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
## API
|
|
@@ -29,6 +30,7 @@ service.direction
|
|
|
29
30
|
|---|---|---|---|
|
|
30
31
|
| `language` | `Language` | never | Site primary language code (for example `en`, `fr`). |
|
|
31
32
|
| `direction` | `LanguageDirection` | never | Site text direction (`ltr` or `rtl`). |
|
|
33
|
+
| `locale` | `string` | never | BCP-47 locale used for regional formatting (for example `en-US`, `de-CH`). |
|
|
32
34
|
| `_updateConfig` | `(Partial<ILocaleServiceConfig>) => void` | never | Private replace-on-write updater for provided fields. |
|
|
33
35
|
|
|
34
36
|
## Configuration
|
|
@@ -37,8 +39,9 @@ service.direction
|
|
|
37
39
|
|
|
38
40
|
```ts
|
|
39
41
|
type ILocaleServiceConfig = {
|
|
40
|
-
language
|
|
41
|
-
direction
|
|
42
|
+
language: Language
|
|
43
|
+
direction: LanguageDirection
|
|
44
|
+
locale: string
|
|
42
45
|
}
|
|
43
46
|
```
|
|
44
47
|
|
|
@@ -3,10 +3,12 @@ import type { Language, LanguageDirection } from '../types';
|
|
|
3
3
|
export type ILocaleServiceConfig = {
|
|
4
4
|
language: Language;
|
|
5
5
|
direction: LanguageDirection;
|
|
6
|
+
locale: string;
|
|
6
7
|
};
|
|
7
8
|
export interface ILocaleService {
|
|
8
9
|
readonly language: Language;
|
|
9
10
|
readonly direction: LanguageDirection;
|
|
11
|
+
readonly locale: string;
|
|
10
12
|
_updateConfig: (config: Partial<ILocaleServiceConfig>) => void;
|
|
11
13
|
}
|
|
12
14
|
export type ILocaleDefinition = ServiceDefinition<ILocaleService, ILocaleServiceConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAmB5C,QAAA,gBAAgB,GAAG,IAAA,oCAAa,EAAuC,0BAA0B,CAAC,CAAA"}
|
|
@@ -8,6 +8,7 @@ exports.LocaleService = (0, services_definitions_1.implementService)(definition_
|
|
|
8
8
|
const { signal } = getService(signals_1.SignalsServiceDefinition);
|
|
9
9
|
const _language = signal(config.language);
|
|
10
10
|
const _direction = signal(config.direction);
|
|
11
|
+
const _locale = signal(config.locale);
|
|
11
12
|
return {
|
|
12
13
|
get language() {
|
|
13
14
|
return _language.get();
|
|
@@ -15,13 +16,19 @@ exports.LocaleService = (0, services_definitions_1.implementService)(definition_
|
|
|
15
16
|
get direction() {
|
|
16
17
|
return _direction.get();
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
+
get locale() {
|
|
20
|
+
return _locale.get();
|
|
21
|
+
},
|
|
22
|
+
_updateConfig({ language, direction, locale }) {
|
|
19
23
|
if (language) {
|
|
20
24
|
_language.set(language);
|
|
21
25
|
}
|
|
22
26
|
if (direction) {
|
|
23
27
|
_direction.set(direction);
|
|
24
28
|
}
|
|
29
|
+
if (locale) {
|
|
30
|
+
_locale.set(locale);
|
|
31
|
+
}
|
|
25
32
|
},
|
|
26
33
|
};
|
|
27
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localeService.js","sourceRoot":"","sources":["../../../src/implementations/localeService.ts"],"names":[],"mappings":";;;AAAA,oEAA4D;AAE5D,6EAA0F;AAE1F,8CAAgD;AAEnC,QAAA,aAAa,GAAG,IAAA,uCAAgB,
|
|
1
|
+
{"version":3,"file":"localeService.js","sourceRoot":"","sources":["../../../src/implementations/localeService.ts"],"names":[],"mappings":";;;AAAA,oEAA4D;AAE5D,6EAA0F;AAE1F,8CAAgD;AAEnC,QAAA,aAAa,GAAG,IAAA,uCAAgB,EAC5C,6BAAgB,EAChB,CAAC,EAAE,MAAM,EAAE,UAAU,EAA4C,EAAkB,EAAE;IACpF,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,kCAAwB,CAAC,CAAA;IACvD,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;IACzC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC3C,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAErC,OAAO;QACN,IAAI,QAAQ;YACX,OAAO,SAAS,CAAC,GAAG,EAAE,CAAA;QACvB,CAAC;QACD,IAAI,SAAS;YACZ,OAAO,UAAU,CAAC,GAAG,EAAE,CAAA;QACxB,CAAC;QACD,IAAI,MAAM;YACT,OAAO,OAAO,CAAC,GAAG,EAAE,CAAA;QACrB,CAAC;QACD,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAiC;YAC3E,IAAI,QAAQ,EAAE,CAAC;gBACd,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;YACxB,CAAC;YACD,IAAI,SAAS,EAAE,CAAC;gBACf,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;YAC1B,CAAC;YACD,IAAI,MAAM,EAAE,CAAC;gBACZ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;YACpB,CAAC;QACF,CAAC;KACD,CAAA;AACF,CAAC,CACD,CAAA"}
|
package/cjs/package.json
CHANGED
package/definition/package.json
CHANGED
|
@@ -3,10 +3,12 @@ import type { Language, LanguageDirection } from '../types';
|
|
|
3
3
|
export type ILocaleServiceConfig = {
|
|
4
4
|
language: Language;
|
|
5
5
|
direction: LanguageDirection;
|
|
6
|
+
locale: string;
|
|
6
7
|
};
|
|
7
8
|
export interface ILocaleService {
|
|
8
9
|
readonly language: Language;
|
|
9
10
|
readonly direction: LanguageDirection;
|
|
11
|
+
readonly locale: string;
|
|
10
12
|
_updateConfig: (config: Partial<ILocaleServiceConfig>) => void;
|
|
11
13
|
}
|
|
12
14
|
export type ILocaleDefinition = ServiceDefinition<ILocaleService, ILocaleServiceConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAmBzD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAuC,0BAA0B,CAAC,CAAA"}
|
|
@@ -5,6 +5,7 @@ export const LocaleService = implementService(LocaleDefinition, ({ config, getSe
|
|
|
5
5
|
const { signal } = getService(SignalsServiceDefinition);
|
|
6
6
|
const _language = signal(config.language);
|
|
7
7
|
const _direction = signal(config.direction);
|
|
8
|
+
const _locale = signal(config.locale);
|
|
8
9
|
return {
|
|
9
10
|
get language() {
|
|
10
11
|
return _language.get();
|
|
@@ -12,13 +13,19 @@ export const LocaleService = implementService(LocaleDefinition, ({ config, getSe
|
|
|
12
13
|
get direction() {
|
|
13
14
|
return _direction.get();
|
|
14
15
|
},
|
|
15
|
-
|
|
16
|
+
get locale() {
|
|
17
|
+
return _locale.get();
|
|
18
|
+
},
|
|
19
|
+
_updateConfig({ language, direction, locale }) {
|
|
16
20
|
if (language) {
|
|
17
21
|
_language.set(language);
|
|
18
22
|
}
|
|
19
23
|
if (direction) {
|
|
20
24
|
_direction.set(direction);
|
|
21
25
|
}
|
|
26
|
+
if (locale) {
|
|
27
|
+
_locale.set(locale);
|
|
28
|
+
}
|
|
22
29
|
},
|
|
23
30
|
};
|
|
24
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localeService.js","sourceRoot":"","sources":["../../src/implementations/localeService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AAE1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"localeService.js","sourceRoot":"","sources":["../../src/implementations/localeService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AAE1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAC5C,gBAAgB,EAChB,CAAC,EAAE,MAAM,EAAE,UAAU,EAA4C,EAAkB,EAAE;IACpF,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAA;IACvD,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;IACzC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC3C,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAErC,OAAO;QACN,IAAI,QAAQ;YACX,OAAO,SAAS,CAAC,GAAG,EAAE,CAAA;QACvB,CAAC;QACD,IAAI,SAAS;YACZ,OAAO,UAAU,CAAC,GAAG,EAAE,CAAA;QACxB,CAAC;QACD,IAAI,MAAM;YACT,OAAO,OAAO,CAAC,GAAG,EAAE,CAAA;QACrB,CAAC;QACD,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAiC;YAC3E,IAAI,QAAQ,EAAE,CAAC;gBACd,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;YACxB,CAAC;YACD,IAAI,SAAS,EAAE,CAAC;gBACf,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;YAC1B,CAAC;YACD,IAAI,MAAM,EAAE,CAAC;gBACZ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;YACpB,CAAC;QACF,CAAC;KACD,CAAA;AACF,CAAC,CACD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-service-locale",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"main": "cjs/build/index.js",
|
|
5
|
-
"module": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
3
|
+
"version": "1.0.4",
|
|
7
4
|
"license": "MIT",
|
|
8
5
|
"files": [
|
|
9
6
|
"dist",
|
|
@@ -14,6 +11,10 @@
|
|
|
14
11
|
"types",
|
|
15
12
|
"!**/*.tsbuildinfo"
|
|
16
13
|
],
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"main": "cjs/build/index.js",
|
|
16
|
+
"module": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
17
18
|
"exports": {
|
|
18
19
|
".": {
|
|
19
20
|
"types": "./dist/index.d.ts",
|
|
@@ -41,6 +42,16 @@
|
|
|
41
42
|
"require": "./cjs/build/service.js"
|
|
42
43
|
}
|
|
43
44
|
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"registry": "https://registry.npmjs.org/",
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsc -b . --force && tsc --project tsconfig.cjs.json",
|
|
51
|
+
"lint": "yarn run -T lint:package $npm_package_name",
|
|
52
|
+
"test": "vitest --run && yarn test-type-check",
|
|
53
|
+
"test-type-check": "echo 'validating typescript in test files' && tsc --project tsconfig.test.json && echo 'Finished validating typescript in test files successfully'"
|
|
54
|
+
},
|
|
44
55
|
"dependencies": {
|
|
45
56
|
"@wix/services-definitions": "^0.1.4",
|
|
46
57
|
"@wix/services-manager": "^0.2.20"
|
|
@@ -49,18 +60,7 @@
|
|
|
49
60
|
"typescript": "^5.3.3",
|
|
50
61
|
"vitest": "4.1.0"
|
|
51
62
|
},
|
|
52
|
-
"scripts": {
|
|
53
|
-
"build": "tsc -b . --force && tsc --project tsconfig.cjs.json",
|
|
54
|
-
"lint": "yarn run -T lint:package $npm_package_name",
|
|
55
|
-
"test": "vitest --run && yarn test-type-check",
|
|
56
|
-
"test-type-check": "echo 'validating typescript in test files' && tsc --project tsconfig.test.json && echo 'Finished validating typescript in test files successfully'"
|
|
57
|
-
},
|
|
58
63
|
"publishUnscoped": false,
|
|
59
|
-
"publishConfig": {
|
|
60
|
-
"registry": "https://registry.npmjs.org/",
|
|
61
|
-
"access": "public"
|
|
62
|
-
},
|
|
63
|
-
"sideEffects": false,
|
|
64
64
|
"wix": {
|
|
65
65
|
"artifact": {
|
|
66
66
|
"groupId": "com.wixpress.npm",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
-
"falconPackageHash": "
|
|
80
|
+
"falconPackageHash": "a8235e10cebdbc3aaaeb8a4c8e2a35268bf7454ee1b9fdc4e2e5b91f"
|
|
81
81
|
}
|
package/src/definition/index.ts
CHANGED
|
@@ -3,14 +3,16 @@ import type { ServiceDefinition } from '@wix/services-definitions'
|
|
|
3
3
|
import type { Language, LanguageDirection } from '../types'
|
|
4
4
|
|
|
5
5
|
export type ILocaleServiceConfig = {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
language: Language
|
|
7
|
+
direction: LanguageDirection
|
|
8
|
+
locale: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export interface ILocaleService {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
readonly language: Language
|
|
13
|
+
readonly direction: LanguageDirection
|
|
14
|
+
readonly locale: string
|
|
15
|
+
_updateConfig: (config: Partial<ILocaleServiceConfig>) => void
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
export type ILocaleDefinition = ServiceDefinition<ILocaleService, ILocaleServiceConfig>
|
|
@@ -5,27 +5,34 @@ import type { ILocaleService, ILocaleServiceConfig } from '../definition'
|
|
|
5
5
|
import { LocaleDefinition } from '../definition'
|
|
6
6
|
|
|
7
7
|
export const LocaleService = implementService(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
LocaleDefinition,
|
|
9
|
+
({ config, getService }: ServiceFactoryOpts<ILocaleServiceConfig>): ILocaleService => {
|
|
10
|
+
const { signal } = getService(SignalsServiceDefinition)
|
|
11
|
+
const _language = signal(config.language)
|
|
12
|
+
const _direction = signal(config.direction)
|
|
13
|
+
const _locale = signal(config.locale)
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
15
|
+
return {
|
|
16
|
+
get language() {
|
|
17
|
+
return _language.get()
|
|
18
|
+
},
|
|
19
|
+
get direction() {
|
|
20
|
+
return _direction.get()
|
|
21
|
+
},
|
|
22
|
+
get locale() {
|
|
23
|
+
return _locale.get()
|
|
24
|
+
},
|
|
25
|
+
_updateConfig({ language, direction, locale }: Partial<ILocaleServiceConfig>) {
|
|
26
|
+
if (language) {
|
|
27
|
+
_language.set(language)
|
|
28
|
+
}
|
|
29
|
+
if (direction) {
|
|
30
|
+
_direction.set(direction)
|
|
31
|
+
}
|
|
32
|
+
if (locale) {
|
|
33
|
+
_locale.set(locale)
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
}
|
|
37
|
+
}
|
|
31
38
|
)
|
package/src/types/index.ts
CHANGED
|
@@ -1,187 +1,187 @@
|
|
|
1
1
|
export type LanguageDirection = 'ltr' | 'rtl'
|
|
2
2
|
|
|
3
3
|
export type Language =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
4
|
+
| 'fa'
|
|
5
|
+
| 'fo'
|
|
6
|
+
| 'ps'
|
|
7
|
+
| 'sq'
|
|
8
|
+
| 'hy'
|
|
9
|
+
| 'bn'
|
|
10
|
+
| 'be'
|
|
11
|
+
| 'yo'
|
|
12
|
+
| 'bs'
|
|
13
|
+
| 'pt'
|
|
14
|
+
| 'bg'
|
|
15
|
+
| 'km'
|
|
16
|
+
| 'zh'
|
|
17
|
+
| 'hr'
|
|
18
|
+
| 'da'
|
|
19
|
+
| 'et'
|
|
20
|
+
| 'fj'
|
|
21
|
+
| 'fi'
|
|
22
|
+
| 'fr'
|
|
23
|
+
| 'de'
|
|
24
|
+
| 'el'
|
|
25
|
+
| 'ht'
|
|
26
|
+
| 'hu'
|
|
27
|
+
| 'is'
|
|
28
|
+
| 'gu'
|
|
29
|
+
| 'hi'
|
|
30
|
+
| 'kl'
|
|
31
|
+
| 'kn'
|
|
32
|
+
| 'ml'
|
|
33
|
+
| 'sd'
|
|
34
|
+
| 'ta'
|
|
35
|
+
| 'te'
|
|
36
|
+
| 'id'
|
|
37
|
+
| 'su'
|
|
38
|
+
| 'ku'
|
|
39
|
+
| 'ga'
|
|
40
|
+
| 'gl'
|
|
41
|
+
| 'he'
|
|
42
|
+
| 'yi'
|
|
43
|
+
| 'co'
|
|
44
|
+
| 'it'
|
|
45
|
+
| 'la'
|
|
46
|
+
| 'lb'
|
|
47
|
+
| 'ja'
|
|
48
|
+
| 'jp'
|
|
49
|
+
| 'kk'
|
|
50
|
+
| 'sw'
|
|
51
|
+
| 'ln'
|
|
52
|
+
| 'lo'
|
|
53
|
+
| 'lv'
|
|
54
|
+
| 'lt'
|
|
55
|
+
| 'mi'
|
|
56
|
+
| 'mk'
|
|
57
|
+
| 'mg'
|
|
58
|
+
| 'mr'
|
|
59
|
+
| 'ms'
|
|
60
|
+
| 'mt'
|
|
61
|
+
| 'my'
|
|
62
|
+
| 'mn'
|
|
63
|
+
| 'ne'
|
|
64
|
+
| 'ha'
|
|
65
|
+
| 'ig'
|
|
66
|
+
| 'no'
|
|
67
|
+
| 'tl'
|
|
68
|
+
| 'pl'
|
|
69
|
+
| 'ro'
|
|
70
|
+
| 'ru'
|
|
71
|
+
| 'se'
|
|
72
|
+
| 'sm'
|
|
73
|
+
| 'sr'
|
|
74
|
+
| 'sk'
|
|
75
|
+
| 'si'
|
|
76
|
+
| 'sl'
|
|
77
|
+
| 'so'
|
|
78
|
+
| 'af'
|
|
79
|
+
| 'xh'
|
|
80
|
+
| 'zu'
|
|
81
|
+
| 'ko'
|
|
82
|
+
| 'eu'
|
|
83
|
+
| 'ca'
|
|
84
|
+
| 'es'
|
|
85
|
+
| 'sv'
|
|
86
|
+
| 'tg'
|
|
87
|
+
| 'th'
|
|
88
|
+
| 'tr'
|
|
89
|
+
| 'ug'
|
|
90
|
+
| 'uk'
|
|
91
|
+
| 'cy'
|
|
92
|
+
| 'en'
|
|
93
|
+
| 'uz'
|
|
94
|
+
| 'vi'
|
|
95
|
+
| 'ny'
|
|
96
|
+
| 'sn'
|
|
97
|
+
| 'az'
|
|
98
|
+
| 'cs'
|
|
99
|
+
| 'am'
|
|
100
|
+
| 'ka'
|
|
101
|
+
| 'ky'
|
|
102
|
+
| 'nl'
|
|
103
|
+
| 'ur'
|
|
104
|
+
| 'ar'
|
|
105
|
+
| 'qu'
|
|
106
|
+
| 'tk'
|
|
107
|
+
| 'aa'
|
|
108
|
+
| 'ab'
|
|
109
|
+
| 'ae'
|
|
110
|
+
| 'ak'
|
|
111
|
+
| 'an'
|
|
112
|
+
| 'as'
|
|
113
|
+
| 'av'
|
|
114
|
+
| 'ay'
|
|
115
|
+
| 'ba'
|
|
116
|
+
| 'bh'
|
|
117
|
+
| 'bi'
|
|
118
|
+
| 'bm'
|
|
119
|
+
| 'bo'
|
|
120
|
+
| 'br'
|
|
121
|
+
| 'ce'
|
|
122
|
+
| 'ch'
|
|
123
|
+
| 'cr'
|
|
124
|
+
| 'cu'
|
|
125
|
+
| 'cv'
|
|
126
|
+
| 'dv'
|
|
127
|
+
| 'dz'
|
|
128
|
+
| 'ee'
|
|
129
|
+
| 'eo'
|
|
130
|
+
| 'ff'
|
|
131
|
+
| 'fy'
|
|
132
|
+
| 'gd'
|
|
133
|
+
| 'gn'
|
|
134
|
+
| 'gv'
|
|
135
|
+
| 'ho'
|
|
136
|
+
| 'hz'
|
|
137
|
+
| 'ia'
|
|
138
|
+
| 'ie'
|
|
139
|
+
| 'ii'
|
|
140
|
+
| 'ik'
|
|
141
|
+
| 'io'
|
|
142
|
+
| 'iu'
|
|
143
|
+
| 'jv'
|
|
144
|
+
| 'ki'
|
|
145
|
+
| 'kr'
|
|
146
|
+
| 'ks'
|
|
147
|
+
| 'kw'
|
|
148
|
+
| 'lg'
|
|
149
|
+
| 'li'
|
|
150
|
+
| 'lu'
|
|
151
|
+
| 'mh'
|
|
152
|
+
| 'na'
|
|
153
|
+
| 'nb'
|
|
154
|
+
| 'nd'
|
|
155
|
+
| 'ng'
|
|
156
|
+
| 'nn'
|
|
157
|
+
| 'nr'
|
|
158
|
+
| 'nv'
|
|
159
|
+
| 'oc'
|
|
160
|
+
| 'oj'
|
|
161
|
+
| 'om'
|
|
162
|
+
| 'or'
|
|
163
|
+
| 'os'
|
|
164
|
+
| 'pa'
|
|
165
|
+
| 'pi'
|
|
166
|
+
| 'rm'
|
|
167
|
+
| 'rn'
|
|
168
|
+
| 'rw'
|
|
169
|
+
| 'sa'
|
|
170
|
+
| 'sc'
|
|
171
|
+
| 'sg'
|
|
172
|
+
| 'ss'
|
|
173
|
+
| 'st'
|
|
174
|
+
| 'ti'
|
|
175
|
+
| 'tn'
|
|
176
|
+
| 'to'
|
|
177
|
+
| 'ts'
|
|
178
|
+
| 'tt'
|
|
179
|
+
| 'tw'
|
|
180
|
+
| 'ty'
|
|
181
|
+
| 've'
|
|
182
|
+
| 'vo'
|
|
183
|
+
| 'wa'
|
|
184
|
+
| 'wo'
|
|
185
|
+
| 'za'
|
|
186
186
|
|
|
187
187
|
export type { ILocaleService, ILocaleServiceConfig, ILocaleDefinition } from '../definition'
|
package/types/package.json
CHANGED