@genesislcap/foundation-i18n 14.449.0 → 14.450.0
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/dist/dts/i18n/i18n.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InitOptions, Callback, TFunction, TOptions,
|
|
1
|
+
import type { InitOptions, Callback, TFunction, TOptions, Resource } from 'i18next';
|
|
2
2
|
import { I18nextConfig } from './config';
|
|
3
3
|
/**
|
|
4
4
|
* The I18next interface is used to provide i18n functionality to components.
|
|
@@ -9,7 +9,7 @@ export interface I18next {
|
|
|
9
9
|
options: InitOptions;
|
|
10
10
|
language: string;
|
|
11
11
|
init(options: InitOptions, callback?: Callback): Promise<TFunction>;
|
|
12
|
-
t(key: string | string[], options?: string | TOptions
|
|
12
|
+
t(key: string | string[], options?: string | TOptions): string;
|
|
13
13
|
changeLanguageTo(language: string): void;
|
|
14
14
|
addResources(resources: Resource): void;
|
|
15
15
|
}
|
|
@@ -23,7 +23,7 @@ export declare class DefaultI18next implements I18next {
|
|
|
23
23
|
options: InitOptions;
|
|
24
24
|
constructor();
|
|
25
25
|
init(options: InitOptions, callback?: Callback): Promise<TFunction>;
|
|
26
|
-
t(key: string | string[], options?: string | TOptions
|
|
26
|
+
t(key: string | string[], options?: string | TOptions): string;
|
|
27
27
|
changeLanguageTo(language: string): void;
|
|
28
28
|
addResources(resources: Resource): void;
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,E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-
"text": "<"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"kind": "Reference",
|
|
516
|
-
"text": "StringMap",
|
|
517
|
-
"canonicalReference": "i18next!StringMap:type"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"kind": "Content",
|
|
521
|
-
"text": ">"
|
|
522
|
-
},
|
|
523
510
|
{
|
|
524
511
|
"kind": "Content",
|
|
525
512
|
"text": "): "
|
|
@@ -535,8 +522,8 @@
|
|
|
535
522
|
],
|
|
536
523
|
"isStatic": false,
|
|
537
524
|
"returnTypeTokenRange": {
|
|
538
|
-
"startIndex":
|
|
539
|
-
"endIndex":
|
|
525
|
+
"startIndex": 6,
|
|
526
|
+
"endIndex": 7
|
|
540
527
|
},
|
|
541
528
|
"releaseTag": "Public",
|
|
542
529
|
"isProtected": false,
|
|
@@ -554,7 +541,7 @@
|
|
|
554
541
|
"parameterName": "options",
|
|
555
542
|
"parameterTypeTokenRange": {
|
|
556
543
|
"startIndex": 3,
|
|
557
|
-
"endIndex":
|
|
544
|
+
"endIndex": 5
|
|
558
545
|
},
|
|
559
546
|
"isOptional": true
|
|
560
547
|
}
|
|
@@ -887,19 +874,6 @@
|
|
|
887
874
|
"text": "TOptions",
|
|
888
875
|
"canonicalReference": "i18next!TOptions:type"
|
|
889
876
|
},
|
|
890
|
-
{
|
|
891
|
-
"kind": "Content",
|
|
892
|
-
"text": "<"
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
"kind": "Reference",
|
|
896
|
-
"text": "StringMap",
|
|
897
|
-
"canonicalReference": "i18next!StringMap:type"
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
"kind": "Content",
|
|
901
|
-
"text": ">"
|
|
902
|
-
},
|
|
903
877
|
{
|
|
904
878
|
"kind": "Content",
|
|
905
879
|
"text": "): "
|
|
@@ -915,8 +889,8 @@
|
|
|
915
889
|
],
|
|
916
890
|
"isOptional": false,
|
|
917
891
|
"returnTypeTokenRange": {
|
|
918
|
-
"startIndex":
|
|
919
|
-
"endIndex":
|
|
892
|
+
"startIndex": 6,
|
|
893
|
+
"endIndex": 7
|
|
920
894
|
},
|
|
921
895
|
"releaseTag": "Alpha",
|
|
922
896
|
"overloadIndex": 1,
|
|
@@ -933,7 +907,7 @@
|
|
|
933
907
|
"parameterName": "options",
|
|
934
908
|
"parameterTypeTokenRange": {
|
|
935
909
|
"startIndex": 3,
|
|
936
|
-
"endIndex":
|
|
910
|
+
"endIndex": 5
|
|
937
911
|
},
|
|
938
912
|
"isOptional": true
|
|
939
913
|
}
|
|
@@ -3,7 +3,6 @@ import i18next from 'i18next';
|
|
|
3
3
|
import type { InitOptions } from 'i18next';
|
|
4
4
|
import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
5
5
|
import type { Resource } from 'i18next';
|
|
6
|
-
import type { StringMap } from 'i18next';
|
|
7
6
|
import type { TFunction } from 'i18next';
|
|
8
7
|
import type { TOptions } from 'i18next';
|
|
9
8
|
|
|
@@ -17,7 +16,7 @@ export declare class DefaultI18next implements I18next {
|
|
|
17
16
|
options: InitOptions;
|
|
18
17
|
constructor();
|
|
19
18
|
init(options: InitOptions, callback?: Callback): Promise<TFunction>;
|
|
20
|
-
t(key: string | string[], options?: string | TOptions
|
|
19
|
+
t(key: string | string[], options?: string | TOptions): string;
|
|
21
20
|
changeLanguageTo(language: string): void;
|
|
22
21
|
addResources(resources: Resource): void;
|
|
23
22
|
}
|
|
@@ -37,7 +36,7 @@ export declare interface I18next {
|
|
|
37
36
|
options: InitOptions;
|
|
38
37
|
language: string;
|
|
39
38
|
init(options: InitOptions, callback?: Callback): Promise<TFunction>;
|
|
40
|
-
t(key: string | string[], options?: string | TOptions
|
|
39
|
+
t(key: string | string[], options?: string | TOptions): string;
|
|
41
40
|
changeLanguageTo(language: string): void;
|
|
42
41
|
addResources(resources: Resource): void;
|
|
43
42
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-i18n",
|
|
3
3
|
"description": "Foundation components and services for Internationalization (i18n) support",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.450.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@genesislcap/genx": "14.
|
|
37
|
-
"@genesislcap/rollup-builder": "14.
|
|
38
|
-
"@genesislcap/ts-builder": "14.
|
|
39
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
40
|
-
"@genesislcap/vite-builder": "14.
|
|
41
|
-
"@genesislcap/webpack-builder": "14.
|
|
36
|
+
"@genesislcap/genx": "14.450.0",
|
|
37
|
+
"@genesislcap/rollup-builder": "14.450.0",
|
|
38
|
+
"@genesislcap/ts-builder": "14.450.0",
|
|
39
|
+
"@genesislcap/uvu-playwright-builder": "14.450.0",
|
|
40
|
+
"@genesislcap/vite-builder": "14.450.0",
|
|
41
|
+
"@genesislcap/webpack-builder": "14.450.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@genesislcap/foundation-logger": "14.
|
|
44
|
+
"@genesislcap/foundation-logger": "14.450.0",
|
|
45
45
|
"@microsoft/fast-element": "1.14.0",
|
|
46
46
|
"@microsoft/fast-foundation": "2.50.0",
|
|
47
47
|
"i18next": "^20.3.0"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "b9824253dfa64fe2dfe72cad8268b7caacebf0b0"
|
|
58
58
|
}
|