@voyantjs/markets-ui 0.16.0 → 0.18.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/LICENSE +201 -109
- package/README.md +14 -0
- package/dist/components/market-currency-dialog.d.ts.map +1 -1
- package/dist/components/market-currency-dialog.js +21 -12
- package/dist/components/market-dialog.d.ts.map +1 -1
- package/dist/components/market-dialog.js +23 -15
- package/dist/components/market-locale-dialog.d.ts.map +1 -1
- package/dist/components/market-locale-dialog.js +17 -7
- package/dist/i18n/en.d.ts +88 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +87 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/messages.d.ts +90 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/provider.d.ts +198 -0
- package/dist/i18n/provider.d.ts.map +1 -0
- package/dist/i18n/provider.js +44 -0
- package/dist/i18n/ro.d.ts +88 -0
- package/dist/i18n/ro.d.ts.map +1 -0
- package/dist/i18n/ro.js +87 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +31 -10
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export declare const marketsUiEn: {
|
|
2
|
+
common: {
|
|
3
|
+
cancel: string;
|
|
4
|
+
saveChanges: string;
|
|
5
|
+
active: string;
|
|
6
|
+
default: string;
|
|
7
|
+
marketStatusLabels: {
|
|
8
|
+
active: string;
|
|
9
|
+
inactive: string;
|
|
10
|
+
archived: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
marketDialog: {
|
|
14
|
+
titles: {
|
|
15
|
+
create: string;
|
|
16
|
+
edit: string;
|
|
17
|
+
};
|
|
18
|
+
fields: {
|
|
19
|
+
code: string;
|
|
20
|
+
name: string;
|
|
21
|
+
status: string;
|
|
22
|
+
regionCode: string;
|
|
23
|
+
country: string;
|
|
24
|
+
languageTag: string;
|
|
25
|
+
defaultCurrency: string;
|
|
26
|
+
timezone: string;
|
|
27
|
+
taxContext: string;
|
|
28
|
+
};
|
|
29
|
+
placeholders: {
|
|
30
|
+
code: string;
|
|
31
|
+
name: string;
|
|
32
|
+
regionCode: string;
|
|
33
|
+
languageTag: string;
|
|
34
|
+
timezone: string;
|
|
35
|
+
taxContext: string;
|
|
36
|
+
};
|
|
37
|
+
actions: {
|
|
38
|
+
create: string;
|
|
39
|
+
};
|
|
40
|
+
validation: {
|
|
41
|
+
codeRequired: string;
|
|
42
|
+
nameRequired: string;
|
|
43
|
+
currencyThreeChars: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
marketCurrencyDialog: {
|
|
47
|
+
titles: {
|
|
48
|
+
create: string;
|
|
49
|
+
edit: string;
|
|
50
|
+
};
|
|
51
|
+
fields: {
|
|
52
|
+
currencyCode: string;
|
|
53
|
+
sortOrder: string;
|
|
54
|
+
isDefault: string;
|
|
55
|
+
isSettlement: string;
|
|
56
|
+
isReporting: string;
|
|
57
|
+
active: string;
|
|
58
|
+
};
|
|
59
|
+
actions: {
|
|
60
|
+
create: string;
|
|
61
|
+
};
|
|
62
|
+
validation: {
|
|
63
|
+
currencyThreeChars: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
marketLocaleDialog: {
|
|
67
|
+
titles: {
|
|
68
|
+
create: string;
|
|
69
|
+
edit: string;
|
|
70
|
+
};
|
|
71
|
+
fields: {
|
|
72
|
+
languageTag: string;
|
|
73
|
+
sortOrder: string;
|
|
74
|
+
isDefault: string;
|
|
75
|
+
active: string;
|
|
76
|
+
};
|
|
77
|
+
placeholders: {
|
|
78
|
+
languageTag: string;
|
|
79
|
+
};
|
|
80
|
+
actions: {
|
|
81
|
+
create: string;
|
|
82
|
+
};
|
|
83
|
+
validation: {
|
|
84
|
+
languageTagRequired: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFK,CAAA"}
|
package/dist/i18n/en.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export const marketsUiEn = {
|
|
2
|
+
common: {
|
|
3
|
+
cancel: "Cancel",
|
|
4
|
+
saveChanges: "Save Changes",
|
|
5
|
+
active: "Active",
|
|
6
|
+
default: "Default",
|
|
7
|
+
marketStatusLabels: {
|
|
8
|
+
active: "Active",
|
|
9
|
+
inactive: "Inactive",
|
|
10
|
+
archived: "Archived",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
marketDialog: {
|
|
14
|
+
titles: {
|
|
15
|
+
create: "Add Market",
|
|
16
|
+
edit: "Edit Market",
|
|
17
|
+
},
|
|
18
|
+
fields: {
|
|
19
|
+
code: "Code",
|
|
20
|
+
name: "Name",
|
|
21
|
+
status: "Status",
|
|
22
|
+
regionCode: "Region code",
|
|
23
|
+
country: "Country",
|
|
24
|
+
languageTag: "Language tag",
|
|
25
|
+
defaultCurrency: "Default currency",
|
|
26
|
+
timezone: "Timezone",
|
|
27
|
+
taxContext: "Tax context",
|
|
28
|
+
},
|
|
29
|
+
placeholders: {
|
|
30
|
+
code: "EU-DE",
|
|
31
|
+
name: "Germany",
|
|
32
|
+
regionCode: "EU, APAC...",
|
|
33
|
+
languageTag: "en, de-DE...",
|
|
34
|
+
timezone: "Europe/Berlin",
|
|
35
|
+
taxContext: "EU-VAT, US-Sales-Tax...",
|
|
36
|
+
},
|
|
37
|
+
actions: {
|
|
38
|
+
create: "Add Market",
|
|
39
|
+
},
|
|
40
|
+
validation: {
|
|
41
|
+
codeRequired: "Code is required",
|
|
42
|
+
nameRequired: "Name is required",
|
|
43
|
+
currencyThreeChars: "Currency must be 3 chars",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
marketCurrencyDialog: {
|
|
47
|
+
titles: {
|
|
48
|
+
create: "Add Currency",
|
|
49
|
+
edit: "Edit Currency",
|
|
50
|
+
},
|
|
51
|
+
fields: {
|
|
52
|
+
currencyCode: "Currency code",
|
|
53
|
+
sortOrder: "Sort order",
|
|
54
|
+
isDefault: "Default",
|
|
55
|
+
isSettlement: "Settlement",
|
|
56
|
+
isReporting: "Reporting",
|
|
57
|
+
active: "Active",
|
|
58
|
+
},
|
|
59
|
+
actions: {
|
|
60
|
+
create: "Add Currency",
|
|
61
|
+
},
|
|
62
|
+
validation: {
|
|
63
|
+
currencyThreeChars: "Currency must be 3 chars",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
marketLocaleDialog: {
|
|
67
|
+
titles: {
|
|
68
|
+
create: "Add Locale",
|
|
69
|
+
edit: "Edit Locale",
|
|
70
|
+
},
|
|
71
|
+
fields: {
|
|
72
|
+
languageTag: "Language tag",
|
|
73
|
+
sortOrder: "Sort order",
|
|
74
|
+
isDefault: "Default",
|
|
75
|
+
active: "Active",
|
|
76
|
+
},
|
|
77
|
+
placeholders: {
|
|
78
|
+
languageTag: "en-GB, de-DE...",
|
|
79
|
+
},
|
|
80
|
+
actions: {
|
|
81
|
+
create: "Add Locale",
|
|
82
|
+
},
|
|
83
|
+
validation: {
|
|
84
|
+
languageTagRequired: "Language tag is required",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { marketsUiEn } from "./en";
|
|
2
|
+
export type { MarketStatus, MarketsUiMessages } from "./messages";
|
|
3
|
+
export { getMarketsUiI18n, type MarketsUiMessageOverrides, MarketsUiMessagesProvider, marketsUiMessageDefinitions, resolveMarketsUiMessages, useMarketsUiI18n, useMarketsUiI18nOrDefault, useMarketsUiMessages, useMarketsUiMessagesOrDefault, } from "./provider";
|
|
4
|
+
export { marketsUiRo } from "./ro";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAA;AAClC,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACjE,OAAO,EACL,gBAAgB,EAChB,KAAK,yBAAyB,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,EACpB,6BAA6B,GAC9B,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { marketsUiEn } from "./en";
|
|
2
|
+
export { getMarketsUiI18n, MarketsUiMessagesProvider, marketsUiMessageDefinitions, resolveMarketsUiMessages, useMarketsUiI18n, useMarketsUiI18nOrDefault, useMarketsUiMessages, useMarketsUiMessagesOrDefault, } from "./provider";
|
|
3
|
+
export { marketsUiRo } from "./ro";
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { CreateMarketInput, MarketCurrencyRecord, MarketLocaleRecord, MarketRecord } from "@voyantjs/markets-react";
|
|
2
|
+
export type MarketStatus = NonNullable<CreateMarketInput["status"]>;
|
|
3
|
+
export type MarketLocaleLanguageTag = MarketLocaleRecord["languageTag"];
|
|
4
|
+
export type MarketCurrencyCode = MarketCurrencyRecord["currencyCode"];
|
|
5
|
+
export type MarketRegionCode = MarketRecord["regionCode"];
|
|
6
|
+
export type MarketCountryCode = MarketRecord["countryCode"];
|
|
7
|
+
export type MarketsUiMessages = {
|
|
8
|
+
common: {
|
|
9
|
+
cancel: string;
|
|
10
|
+
saveChanges: string;
|
|
11
|
+
active: string;
|
|
12
|
+
default: string;
|
|
13
|
+
marketStatusLabels: Record<MarketStatus, string>;
|
|
14
|
+
};
|
|
15
|
+
marketDialog: {
|
|
16
|
+
titles: {
|
|
17
|
+
create: string;
|
|
18
|
+
edit: string;
|
|
19
|
+
};
|
|
20
|
+
fields: {
|
|
21
|
+
code: string;
|
|
22
|
+
name: string;
|
|
23
|
+
status: string;
|
|
24
|
+
regionCode: string;
|
|
25
|
+
country: string;
|
|
26
|
+
languageTag: string;
|
|
27
|
+
defaultCurrency: string;
|
|
28
|
+
timezone: string;
|
|
29
|
+
taxContext: string;
|
|
30
|
+
};
|
|
31
|
+
placeholders: {
|
|
32
|
+
code: string;
|
|
33
|
+
name: string;
|
|
34
|
+
regionCode: string;
|
|
35
|
+
languageTag: string;
|
|
36
|
+
timezone: string;
|
|
37
|
+
taxContext: string;
|
|
38
|
+
};
|
|
39
|
+
actions: {
|
|
40
|
+
create: string;
|
|
41
|
+
};
|
|
42
|
+
validation: {
|
|
43
|
+
codeRequired: string;
|
|
44
|
+
nameRequired: string;
|
|
45
|
+
currencyThreeChars: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
marketCurrencyDialog: {
|
|
49
|
+
titles: {
|
|
50
|
+
create: string;
|
|
51
|
+
edit: string;
|
|
52
|
+
};
|
|
53
|
+
fields: {
|
|
54
|
+
currencyCode: string;
|
|
55
|
+
sortOrder: string;
|
|
56
|
+
isDefault: string;
|
|
57
|
+
isSettlement: string;
|
|
58
|
+
isReporting: string;
|
|
59
|
+
active: string;
|
|
60
|
+
};
|
|
61
|
+
actions: {
|
|
62
|
+
create: string;
|
|
63
|
+
};
|
|
64
|
+
validation: {
|
|
65
|
+
currencyThreeChars: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
marketLocaleDialog: {
|
|
69
|
+
titles: {
|
|
70
|
+
create: string;
|
|
71
|
+
edit: string;
|
|
72
|
+
};
|
|
73
|
+
fields: {
|
|
74
|
+
languageTag: string;
|
|
75
|
+
sortOrder: string;
|
|
76
|
+
isDefault: string;
|
|
77
|
+
active: string;
|
|
78
|
+
};
|
|
79
|
+
placeholders: {
|
|
80
|
+
languageTag: string;
|
|
81
|
+
};
|
|
82
|
+
actions: {
|
|
83
|
+
create: string;
|
|
84
|
+
};
|
|
85
|
+
validation: {
|
|
86
|
+
languageTagRequired: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/i18n/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACb,MAAM,yBAAyB,CAAA;AAEhC,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAA;AACnE,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAA;AACvE,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAA;AACrE,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA;AACzD,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;AAE3D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,WAAW,EAAE,MAAM,CAAA;QACnB,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,kBAAkB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAA;KACjD,CAAA;IACD,YAAY,EAAE;QACZ,MAAM,EAAE;YACN,MAAM,EAAE,MAAM,CAAA;YACd,IAAI,EAAE,MAAM,CAAA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,MAAM,CAAA;SACb,CAAA;QACD,MAAM,EAAE;YACN,WAAW,EAAE,MAAM,CAAA;YACnB,SAAS,EAAE,MAAM,CAAA;YACjB,SAAS,EAAE,MAAM,CAAA;YACjB,MAAM,EAAE,MAAM,CAAA;SACf,CAAA;QACD,YAAY,EAAE;YACZ,WAAW,EAAE,MAAM,CAAA;SACpB,CAAA;QACD,OAAO,EAAE;YACP,MAAM,EAAE,MAAM,CAAA;SACf,CAAA;QACD,UAAU,EAAE;YACV,mBAAmB,EAAE,MAAM,CAAA;SAC5B,CAAA;KACF,CAAA;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { type LocaleMessageOverrides, type PackageI18nValue } from "@voyantjs/i18n";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { MarketsUiMessages } from "./messages";
|
|
4
|
+
export declare const marketsUiMessageDefinitions: {
|
|
5
|
+
en: {
|
|
6
|
+
common: {
|
|
7
|
+
cancel: string;
|
|
8
|
+
saveChanges: string;
|
|
9
|
+
active: string;
|
|
10
|
+
default: string;
|
|
11
|
+
marketStatusLabels: {
|
|
12
|
+
active: string;
|
|
13
|
+
inactive: string;
|
|
14
|
+
archived: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
marketDialog: {
|
|
18
|
+
titles: {
|
|
19
|
+
create: string;
|
|
20
|
+
edit: string;
|
|
21
|
+
};
|
|
22
|
+
fields: {
|
|
23
|
+
code: string;
|
|
24
|
+
name: string;
|
|
25
|
+
status: string;
|
|
26
|
+
regionCode: string;
|
|
27
|
+
country: string;
|
|
28
|
+
languageTag: string;
|
|
29
|
+
defaultCurrency: string;
|
|
30
|
+
timezone: string;
|
|
31
|
+
taxContext: string;
|
|
32
|
+
};
|
|
33
|
+
placeholders: {
|
|
34
|
+
code: string;
|
|
35
|
+
name: string;
|
|
36
|
+
regionCode: string;
|
|
37
|
+
languageTag: string;
|
|
38
|
+
timezone: string;
|
|
39
|
+
taxContext: string;
|
|
40
|
+
};
|
|
41
|
+
actions: {
|
|
42
|
+
create: string;
|
|
43
|
+
};
|
|
44
|
+
validation: {
|
|
45
|
+
codeRequired: string;
|
|
46
|
+
nameRequired: string;
|
|
47
|
+
currencyThreeChars: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
marketCurrencyDialog: {
|
|
51
|
+
titles: {
|
|
52
|
+
create: string;
|
|
53
|
+
edit: string;
|
|
54
|
+
};
|
|
55
|
+
fields: {
|
|
56
|
+
currencyCode: string;
|
|
57
|
+
sortOrder: string;
|
|
58
|
+
isDefault: string;
|
|
59
|
+
isSettlement: string;
|
|
60
|
+
isReporting: string;
|
|
61
|
+
active: string;
|
|
62
|
+
};
|
|
63
|
+
actions: {
|
|
64
|
+
create: string;
|
|
65
|
+
};
|
|
66
|
+
validation: {
|
|
67
|
+
currencyThreeChars: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
marketLocaleDialog: {
|
|
71
|
+
titles: {
|
|
72
|
+
create: string;
|
|
73
|
+
edit: string;
|
|
74
|
+
};
|
|
75
|
+
fields: {
|
|
76
|
+
languageTag: string;
|
|
77
|
+
sortOrder: string;
|
|
78
|
+
isDefault: string;
|
|
79
|
+
active: string;
|
|
80
|
+
};
|
|
81
|
+
placeholders: {
|
|
82
|
+
languageTag: string;
|
|
83
|
+
};
|
|
84
|
+
actions: {
|
|
85
|
+
create: string;
|
|
86
|
+
};
|
|
87
|
+
validation: {
|
|
88
|
+
languageTagRequired: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
ro: {
|
|
93
|
+
common: {
|
|
94
|
+
cancel: string;
|
|
95
|
+
saveChanges: string;
|
|
96
|
+
active: string;
|
|
97
|
+
default: string;
|
|
98
|
+
marketStatusLabels: {
|
|
99
|
+
active: string;
|
|
100
|
+
inactive: string;
|
|
101
|
+
archived: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
marketDialog: {
|
|
105
|
+
titles: {
|
|
106
|
+
create: string;
|
|
107
|
+
edit: string;
|
|
108
|
+
};
|
|
109
|
+
fields: {
|
|
110
|
+
code: string;
|
|
111
|
+
name: string;
|
|
112
|
+
status: string;
|
|
113
|
+
regionCode: string;
|
|
114
|
+
country: string;
|
|
115
|
+
languageTag: string;
|
|
116
|
+
defaultCurrency: string;
|
|
117
|
+
timezone: string;
|
|
118
|
+
taxContext: string;
|
|
119
|
+
};
|
|
120
|
+
placeholders: {
|
|
121
|
+
code: string;
|
|
122
|
+
name: string;
|
|
123
|
+
regionCode: string;
|
|
124
|
+
languageTag: string;
|
|
125
|
+
timezone: string;
|
|
126
|
+
taxContext: string;
|
|
127
|
+
};
|
|
128
|
+
actions: {
|
|
129
|
+
create: string;
|
|
130
|
+
};
|
|
131
|
+
validation: {
|
|
132
|
+
codeRequired: string;
|
|
133
|
+
nameRequired: string;
|
|
134
|
+
currencyThreeChars: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
marketCurrencyDialog: {
|
|
138
|
+
titles: {
|
|
139
|
+
create: string;
|
|
140
|
+
edit: string;
|
|
141
|
+
};
|
|
142
|
+
fields: {
|
|
143
|
+
currencyCode: string;
|
|
144
|
+
sortOrder: string;
|
|
145
|
+
isDefault: string;
|
|
146
|
+
isSettlement: string;
|
|
147
|
+
isReporting: string;
|
|
148
|
+
active: string;
|
|
149
|
+
};
|
|
150
|
+
actions: {
|
|
151
|
+
create: string;
|
|
152
|
+
};
|
|
153
|
+
validation: {
|
|
154
|
+
currencyThreeChars: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
marketLocaleDialog: {
|
|
158
|
+
titles: {
|
|
159
|
+
create: string;
|
|
160
|
+
edit: string;
|
|
161
|
+
};
|
|
162
|
+
fields: {
|
|
163
|
+
languageTag: string;
|
|
164
|
+
sortOrder: string;
|
|
165
|
+
isDefault: string;
|
|
166
|
+
active: string;
|
|
167
|
+
};
|
|
168
|
+
placeholders: {
|
|
169
|
+
languageTag: string;
|
|
170
|
+
};
|
|
171
|
+
actions: {
|
|
172
|
+
create: string;
|
|
173
|
+
};
|
|
174
|
+
validation: {
|
|
175
|
+
languageTagRequired: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
export type MarketsUiMessageOverrides = LocaleMessageOverrides<MarketsUiMessages>;
|
|
181
|
+
export declare function resolveMarketsUiMessages({ locale, overrides, }: {
|
|
182
|
+
locale: string | null | undefined;
|
|
183
|
+
overrides?: MarketsUiMessageOverrides | null;
|
|
184
|
+
}): MarketsUiMessages;
|
|
185
|
+
export declare function getMarketsUiI18n({ locale, overrides, }: {
|
|
186
|
+
locale?: string | null | undefined;
|
|
187
|
+
overrides?: MarketsUiMessageOverrides | null;
|
|
188
|
+
}): PackageI18nValue<MarketsUiMessages>;
|
|
189
|
+
export declare function MarketsUiMessagesProvider({ children, locale, overrides, }: {
|
|
190
|
+
children: ReactNode;
|
|
191
|
+
locale: string | null | undefined;
|
|
192
|
+
overrides?: MarketsUiMessageOverrides | null;
|
|
193
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
194
|
+
export declare const useMarketsUiI18n: () => PackageI18nValue<MarketsUiMessages>;
|
|
195
|
+
export declare const useMarketsUiMessages: () => MarketsUiMessages;
|
|
196
|
+
export declare function useMarketsUiI18nOrDefault(): PackageI18nValue<MarketsUiMessages>;
|
|
197
|
+
export declare function useMarketsUiMessagesOrDefault(): MarketsUiMessages;
|
|
198
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO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ime";
|
|
3
|
+
import { createLocaleFormatters, createPackageMessagesContext, resolvePackageMessages, } from "@voyantjs/i18n";
|
|
4
|
+
import { marketsUiEn } from "./en";
|
|
5
|
+
import { marketsUiRo } from "./ro";
|
|
6
|
+
const fallbackLocale = "en";
|
|
7
|
+
export const marketsUiMessageDefinitions = {
|
|
8
|
+
en: marketsUiEn,
|
|
9
|
+
ro: marketsUiRo,
|
|
10
|
+
};
|
|
11
|
+
const marketsUiContext = createPackageMessagesContext("MarketsUiMessages");
|
|
12
|
+
const defaultMarketsUiI18n = {
|
|
13
|
+
messages: marketsUiEn,
|
|
14
|
+
...createLocaleFormatters(fallbackLocale),
|
|
15
|
+
};
|
|
16
|
+
export function resolveMarketsUiMessages({ locale, overrides, }) {
|
|
17
|
+
return resolvePackageMessages({
|
|
18
|
+
definitions: marketsUiMessageDefinitions,
|
|
19
|
+
fallbackLocale,
|
|
20
|
+
locale,
|
|
21
|
+
overrides,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export function getMarketsUiI18n({ locale, overrides, }) {
|
|
25
|
+
const resolvedLocale = locale ?? fallbackLocale;
|
|
26
|
+
return {
|
|
27
|
+
messages: resolveMarketsUiMessages({
|
|
28
|
+
locale: resolvedLocale,
|
|
29
|
+
overrides,
|
|
30
|
+
}),
|
|
31
|
+
...createLocaleFormatters(resolvedLocale),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function MarketsUiMessagesProvider({ children, locale, overrides, }) {
|
|
35
|
+
return (_jsx(marketsUiContext.ResolvedMessagesProvider, { definitions: marketsUiMessageDefinitions, fallbackLocale: fallbackLocale, locale: locale, overrides: overrides, children: children }));
|
|
36
|
+
}
|
|
37
|
+
export const useMarketsUiI18n = marketsUiContext.useI18n;
|
|
38
|
+
export const useMarketsUiMessages = marketsUiContext.useMessages;
|
|
39
|
+
export function useMarketsUiI18nOrDefault() {
|
|
40
|
+
return marketsUiContext.useOptionalI18n() ?? defaultMarketsUiI18n;
|
|
41
|
+
}
|
|
42
|
+
export function useMarketsUiMessagesOrDefault() {
|
|
43
|
+
return useMarketsUiI18nOrDefault().messages;
|
|
44
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export declare const marketsUiRo: {
|
|
2
|
+
common: {
|
|
3
|
+
cancel: string;
|
|
4
|
+
saveChanges: string;
|
|
5
|
+
active: string;
|
|
6
|
+
default: string;
|
|
7
|
+
marketStatusLabels: {
|
|
8
|
+
active: string;
|
|
9
|
+
inactive: string;
|
|
10
|
+
archived: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
marketDialog: {
|
|
14
|
+
titles: {
|
|
15
|
+
create: string;
|
|
16
|
+
edit: string;
|
|
17
|
+
};
|
|
18
|
+
fields: {
|
|
19
|
+
code: string;
|
|
20
|
+
name: string;
|
|
21
|
+
status: string;
|
|
22
|
+
regionCode: string;
|
|
23
|
+
country: string;
|
|
24
|
+
languageTag: string;
|
|
25
|
+
defaultCurrency: string;
|
|
26
|
+
timezone: string;
|
|
27
|
+
taxContext: string;
|
|
28
|
+
};
|
|
29
|
+
placeholders: {
|
|
30
|
+
code: string;
|
|
31
|
+
name: string;
|
|
32
|
+
regionCode: string;
|
|
33
|
+
languageTag: string;
|
|
34
|
+
timezone: string;
|
|
35
|
+
taxContext: string;
|
|
36
|
+
};
|
|
37
|
+
actions: {
|
|
38
|
+
create: string;
|
|
39
|
+
};
|
|
40
|
+
validation: {
|
|
41
|
+
codeRequired: string;
|
|
42
|
+
nameRequired: string;
|
|
43
|
+
currencyThreeChars: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
marketCurrencyDialog: {
|
|
47
|
+
titles: {
|
|
48
|
+
create: string;
|
|
49
|
+
edit: string;
|
|
50
|
+
};
|
|
51
|
+
fields: {
|
|
52
|
+
currencyCode: string;
|
|
53
|
+
sortOrder: string;
|
|
54
|
+
isDefault: string;
|
|
55
|
+
isSettlement: string;
|
|
56
|
+
isReporting: string;
|
|
57
|
+
active: string;
|
|
58
|
+
};
|
|
59
|
+
actions: {
|
|
60
|
+
create: string;
|
|
61
|
+
};
|
|
62
|
+
validation: {
|
|
63
|
+
currencyThreeChars: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
marketLocaleDialog: {
|
|
67
|
+
titles: {
|
|
68
|
+
create: string;
|
|
69
|
+
edit: string;
|
|
70
|
+
};
|
|
71
|
+
fields: {
|
|
72
|
+
languageTag: string;
|
|
73
|
+
sortOrder: string;
|
|
74
|
+
isDefault: string;
|
|
75
|
+
active: string;
|
|
76
|
+
};
|
|
77
|
+
placeholders: {
|
|
78
|
+
languageTag: string;
|
|
79
|
+
};
|
|
80
|
+
actions: {
|
|
81
|
+
create: string;
|
|
82
|
+
};
|
|
83
|
+
validation: {
|
|
84
|
+
languageTagRequired: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=ro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ro.d.ts","sourceRoot":"","sources":["../../src/i18n/ro.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFK,CAAA"}
|