@twin.org/merge-locales 0.0.1-next.6 → 0.0.1-next.70
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/bin/index.js +0 -0
- package/dist/cjs/index.cjs +16 -6
- package/dist/esm/index.mjs +15 -5
- package/dist/locales/en.json +262 -243
- package/dist/types/models/IPackageJson.d.ts +6 -0
- package/docs/changelog.md +238 -1
- package/docs/reference/classes/CLI.md +17 -9
- package/docs/reference/functions/actionCommandMergeLocales.md +4 -2
- package/docs/reference/functions/buildCommandMergeLocales.md +3 -1
- package/docs/reference/functions/mergeLocales.md +6 -2
- package/locales/en.json +6 -0
- package/package.json +10 -10
package/bin/index.js
CHANGED
|
File without changes
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -85,19 +85,20 @@ async function mergeLocales(workingDirectory, config) {
|
|
|
85
85
|
}
|
|
86
86
|
cliCore.CLIDisplay.break();
|
|
87
87
|
const localeDictionaries = {};
|
|
88
|
-
if (core.Is.stringValue(packageJson.name)) {
|
|
89
|
-
await mergePackageLocales(path.join(workingDirectory, "locales"), packageJson.name, locales, localeDictionaries);
|
|
90
|
-
}
|
|
91
88
|
for (const packageName of packageNames) {
|
|
92
89
|
const packageLocalDirectory = path.join(npmRoot, packageName, "locales");
|
|
93
90
|
await mergePackageLocales(packageLocalDirectory, packageName, locales, localeDictionaries);
|
|
94
91
|
}
|
|
92
|
+
// Merge the main package last so that it can override any other packages.
|
|
93
|
+
if (core.Is.stringValue(packageJson.name)) {
|
|
94
|
+
await mergePackageLocales(path.join(workingDirectory, "locales"), packageJson.name, locales, localeDictionaries);
|
|
95
|
+
}
|
|
95
96
|
cliCore.CLIDisplay.break();
|
|
96
97
|
cliCore.CLIDisplay.task(core.I18n.formatMessage("commands.merge-locales.progress.writingMergedLocales"));
|
|
97
98
|
for (const localeDictionary in localeDictionaries) {
|
|
98
99
|
const localeFile = path.join(outputDirectory, `${localeDictionary}.json`);
|
|
99
100
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.merge-locales.labels.writingLocale"), localeFile, 1);
|
|
100
|
-
await promises.writeFile(localeFile, JSON.stringify(localeDictionaries[localeDictionary],
|
|
101
|
+
await promises.writeFile(localeFile, `${JSON.stringify(localeDictionaries[localeDictionary], undefined, "\t")}\n`, "utf8");
|
|
101
102
|
}
|
|
102
103
|
cliCore.CLIDisplay.break();
|
|
103
104
|
}
|
|
@@ -144,6 +145,15 @@ async function findDependencies(npmRoot, packageJsonPath, packageNames) {
|
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
}
|
|
148
|
+
if (core.Is.objectValue(packageJson?.peerDependencies)) {
|
|
149
|
+
for (const pkg in packageJson.peerDependencies) {
|
|
150
|
+
if (pkg.startsWith("@twin.org") && !packageNames.includes(pkg)) {
|
|
151
|
+
packageNames.push(pkg);
|
|
152
|
+
const packagePath = path.join(npmRoot, pkg, "package.json");
|
|
153
|
+
await findDependencies(npmRoot, packagePath, packageNames);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
147
157
|
return packageJson ?? {};
|
|
148
158
|
}
|
|
149
159
|
|
|
@@ -165,11 +175,11 @@ class CLI extends cliCore.CLIBase {
|
|
|
165
175
|
return this.execute({
|
|
166
176
|
title: "TWIN Merge Locales",
|
|
167
177
|
appName: "merge-locales",
|
|
168
|
-
version: "0.0.1-next.
|
|
178
|
+
version: "0.0.1-next.70", // x-release-please-version
|
|
169
179
|
icon: "⚙️ ",
|
|
170
180
|
supportsEnvFiles: false,
|
|
171
181
|
overrideOutputWidth: options?.overrideOutputWidth
|
|
172
|
-
}, localesDirectory ?? path.join(path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))), "../locales"), argv);
|
|
182
|
+
}, localesDirectory ?? path.join(path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))), "../locales"), argv);
|
|
173
183
|
}
|
|
174
184
|
/**
|
|
175
185
|
* Configure any options or actions at the root program level.
|
package/dist/esm/index.mjs
CHANGED
|
@@ -82,19 +82,20 @@ async function mergeLocales(workingDirectory, config) {
|
|
|
82
82
|
}
|
|
83
83
|
CLIDisplay.break();
|
|
84
84
|
const localeDictionaries = {};
|
|
85
|
-
if (Is.stringValue(packageJson.name)) {
|
|
86
|
-
await mergePackageLocales(path.join(workingDirectory, "locales"), packageJson.name, locales, localeDictionaries);
|
|
87
|
-
}
|
|
88
85
|
for (const packageName of packageNames) {
|
|
89
86
|
const packageLocalDirectory = path.join(npmRoot, packageName, "locales");
|
|
90
87
|
await mergePackageLocales(packageLocalDirectory, packageName, locales, localeDictionaries);
|
|
91
88
|
}
|
|
89
|
+
// Merge the main package last so that it can override any other packages.
|
|
90
|
+
if (Is.stringValue(packageJson.name)) {
|
|
91
|
+
await mergePackageLocales(path.join(workingDirectory, "locales"), packageJson.name, locales, localeDictionaries);
|
|
92
|
+
}
|
|
92
93
|
CLIDisplay.break();
|
|
93
94
|
CLIDisplay.task(I18n.formatMessage("commands.merge-locales.progress.writingMergedLocales"));
|
|
94
95
|
for (const localeDictionary in localeDictionaries) {
|
|
95
96
|
const localeFile = path.join(outputDirectory, `${localeDictionary}.json`);
|
|
96
97
|
CLIDisplay.value(I18n.formatMessage("commands.merge-locales.labels.writingLocale"), localeFile, 1);
|
|
97
|
-
await writeFile(localeFile, JSON.stringify(localeDictionaries[localeDictionary],
|
|
98
|
+
await writeFile(localeFile, `${JSON.stringify(localeDictionaries[localeDictionary], undefined, "\t")}\n`, "utf8");
|
|
98
99
|
}
|
|
99
100
|
CLIDisplay.break();
|
|
100
101
|
}
|
|
@@ -141,6 +142,15 @@ async function findDependencies(npmRoot, packageJsonPath, packageNames) {
|
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
144
|
}
|
|
145
|
+
if (Is.objectValue(packageJson?.peerDependencies)) {
|
|
146
|
+
for (const pkg in packageJson.peerDependencies) {
|
|
147
|
+
if (pkg.startsWith("@twin.org") && !packageNames.includes(pkg)) {
|
|
148
|
+
packageNames.push(pkg);
|
|
149
|
+
const packagePath = path.join(npmRoot, pkg, "package.json");
|
|
150
|
+
await findDependencies(npmRoot, packagePath, packageNames);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
144
154
|
return packageJson ?? {};
|
|
145
155
|
}
|
|
146
156
|
|
|
@@ -162,7 +172,7 @@ class CLI extends CLIBase {
|
|
|
162
172
|
return this.execute({
|
|
163
173
|
title: "TWIN Merge Locales",
|
|
164
174
|
appName: "merge-locales",
|
|
165
|
-
version: "0.0.1-next.
|
|
175
|
+
version: "0.0.1-next.70", // x-release-please-version
|
|
166
176
|
icon: "⚙️ ",
|
|
167
177
|
supportsEnvFiles: false,
|
|
168
178
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/locales/en.json
CHANGED
|
@@ -1,244 +1,263 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
2
|
+
"error": {
|
|
3
|
+
"commands": {
|
|
4
|
+
"common": {
|
|
5
|
+
"missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
|
|
6
|
+
"optionInvalidHex": "The \"{option}\" does not appear to be hex. \"{value}\"",
|
|
7
|
+
"optionInvalidBase64": "The \"{option}\" does not appear to be base64. \"{value}\"",
|
|
8
|
+
"optionInvalidHexBase64": "The \"{option}\" does not appear to be hex or base64. \"{value}\"",
|
|
9
|
+
"optionInvalidBech32": "The \"{option}\" does not appear to be bech32. \"{value}\"",
|
|
10
|
+
"optionMinValue": "The \"{option}\" option must be greater than or equal to {minValue}, it is {value}.",
|
|
11
|
+
"optionMaxValue": "The \"{option}\" option must be less than or equal to {maxValue}, it is {value}."
|
|
12
|
+
},
|
|
13
|
+
"merge-locales": {
|
|
14
|
+
"configFailed": "Configuration failed to load."
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"validation": {
|
|
18
|
+
"beEmpty": "{fieldName} must be empty",
|
|
19
|
+
"beNotEmpty": "{fieldName} must not be empty",
|
|
20
|
+
"beText": "{fieldName} must be text",
|
|
21
|
+
"beTextValue": "{fieldName} must contain some text",
|
|
22
|
+
"beTextMinMax": "{fieldName} must be longer than {minLength} and shorter than {maxLength} characters",
|
|
23
|
+
"beTextMin": "{fieldName} must be longer than {minLength} characters",
|
|
24
|
+
"beTextMax": "{fieldName} must be shorter than {maxLength} characters",
|
|
25
|
+
"beTextBase58": "{fieldName} must be text formatted using Base58 characters",
|
|
26
|
+
"beTextBase64": "{fieldName} must be text formatted using Base64 characters",
|
|
27
|
+
"beTextHex": "{fieldName} must be text formatted using Hex characters",
|
|
28
|
+
"beTextRegExp": "{fieldName} must be text formatted using the matching pattern {format}",
|
|
29
|
+
"beNumber": "{fieldName} must be a number",
|
|
30
|
+
"beNumberMinMax": "{fieldName} must be >= {minValue} and <= {maxValue}",
|
|
31
|
+
"beNumberMin": "{fieldName} must be >= {minValue}",
|
|
32
|
+
"beNumberMax": "{fieldName} must be <= {maxValue}",
|
|
33
|
+
"beWholeNumber": "{fieldName} must be a whole number",
|
|
34
|
+
"beWholeNumberMinMax": "{fieldName} must be a whole number >= {minValue} and <= {maxValue}",
|
|
35
|
+
"beWholeNumberMin": "{fieldName} must be a whole number >= {minValue}",
|
|
36
|
+
"beWholeNumberMax": "{fieldName} must be a whole number <= {maxValue}",
|
|
37
|
+
"beBigInteger": "{fieldName} must be a bigint",
|
|
38
|
+
"beBigIntegerMinMax": "{fieldName} must be a bigint >= {minValue} and <= {maxValue}",
|
|
39
|
+
"beBigIntegerMin": "{fieldName} must be a bigint >= {minValue}",
|
|
40
|
+
"beBigIntegerMax": "{fieldName} must be a bigint <= {maxValue}",
|
|
41
|
+
"beBoolean": "{fieldName} must be true or false",
|
|
42
|
+
"beDate": "{fieldName} must be a date",
|
|
43
|
+
"beDateTime": "{fieldName} must be a date/time",
|
|
44
|
+
"beTime": "{fieldName} must be a time",
|
|
45
|
+
"beTimestampMilliseconds": "{fieldName} must be a timestamp in milliseconds",
|
|
46
|
+
"beTimestampSeconds": "{fieldName} must be a timestamp in seconds",
|
|
47
|
+
"beObject": "{fieldName} must be an object",
|
|
48
|
+
"beArray": "{fieldName} must be an array",
|
|
49
|
+
"beArrayValue": "{fieldName} must be an array with at least one item",
|
|
50
|
+
"beIncluded": "{fieldName} is unrecognised",
|
|
51
|
+
"beByteArray": "{fieldName} must be a byte array",
|
|
52
|
+
"beUrn": "{fieldName} must be a correctly formatted urn",
|
|
53
|
+
"beUrl": "{fieldName} must be a correctly formatted url",
|
|
54
|
+
"beJSON": "{fieldName} must be correctly formatted JSON",
|
|
55
|
+
"beEmail": "{fieldName} must be a correctly formatted e-mail address",
|
|
56
|
+
"failed": "Validation failed",
|
|
57
|
+
"failedObject": "Validation of \"{objectName}\" failed"
|
|
58
|
+
},
|
|
59
|
+
"guard": {
|
|
60
|
+
"undefined": "Property \"{property}\" must be defined, it is \"{value}\"",
|
|
61
|
+
"string": "Property \"{property}\" must be a string, it is \"{value}\"",
|
|
62
|
+
"stringEmpty": "Property \"{property}\" must have a value, it is empty",
|
|
63
|
+
"stringBase64": "Property \"{property}\" must be a base64 encoded string, it is \"{value}\"",
|
|
64
|
+
"stringBase64Url": "Property \"{property}\" must be a base64 url encoded string, it is \"{value}\"",
|
|
65
|
+
"stringBase58": "Property \"{property}\" must be a base58 encoded string, it is \"{value}\"",
|
|
66
|
+
"stringHex": "Property \"{property}\" must be a hex string, it is \"{value}\"",
|
|
67
|
+
"stringHexLength": "Property \"{property}\" must be a hex string of length \"{options}\", it is \"{value}\"",
|
|
68
|
+
"stringJson": "Property \"{property}\" must be a JSON string",
|
|
69
|
+
"number": "Property \"{property}\" must be a number, it is \"{value}\"",
|
|
70
|
+
"integer": "Property \"{property}\" must be an integer, it is \"{value}\"",
|
|
71
|
+
"bigint": "Property \"{property}\" must be a bigint, it is \"{value}\"",
|
|
72
|
+
"boolean": "Property \"{property}\" must be a boolean, it is \"{value}\"",
|
|
73
|
+
"date": "Property \"{property}\" must be a date, it is \"{value}\"",
|
|
74
|
+
"timestampMilliseconds": "Property \"{property}\" must be a timestamp in milliseconds, it is \"{value}\"",
|
|
75
|
+
"timestampSeconds": "Property \"{property}\" must be a timestamp in seconds, it is \"{value}\"",
|
|
76
|
+
"objectUndefined": "Property \"{property}\" must be an object, it is \"undefined\"",
|
|
77
|
+
"object": "Property \"{property}\" must be an object, it is \"{value}\"",
|
|
78
|
+
"objectValue": "Property \"{property}\" must be an object, with at least one property, it is \"{value}\"",
|
|
79
|
+
"array": "Property \"{property}\" must be an array, it is \"{value}\"",
|
|
80
|
+
"arrayValue": "Property \"{property}\" must be an array with at least one item",
|
|
81
|
+
"arrayOneOf": "Property \"{property}\" must be one of [{options}], it is \"{value}\"",
|
|
82
|
+
"arrayStartsWith": "Property \"{property}\" must be an array starting with [{startValues}], it is \"{value}\"",
|
|
83
|
+
"arrayEndsWith": "Property \"{property}\" must be an array ending with [{endValues}], it is \"{value}\"",
|
|
84
|
+
"uint8Array": "Property \"{property}\" must be a Uint8Array, it is \"{value}\"",
|
|
85
|
+
"function": "Property \"{property}\" must be a function, it is \"{value}\"",
|
|
86
|
+
"urn": "Property \"{property}\" must be a Urn formatted string, it is \"{value}\"",
|
|
87
|
+
"url": "Property \"{property}\" must be a Url formatted string, it is \"{value}\"",
|
|
88
|
+
"email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
|
|
89
|
+
"length32Multiple": "Property \"{property}\" should be a multiple of 32, it is {value}",
|
|
90
|
+
"lengthEntropy": "Property \"{property}\" should be a multiple of 4, >=16 and <= 32, it is {value}",
|
|
91
|
+
"length3Multiple": "Property \"{property}\" should be a multiple of 3, it is {value}",
|
|
92
|
+
"greaterThan0": "Property \"{property}\" must be greater than zero, it is {value}"
|
|
93
|
+
},
|
|
94
|
+
"objectHelper": {
|
|
95
|
+
"failedBytesToJSON": "Failed converting bytes to JSON",
|
|
96
|
+
"cannotSetArrayIndex": "Cannot set property \"{property}\" using index \"{index}\" as it is not an array",
|
|
97
|
+
"cannotSetProperty": "Cannot set property \"{property}\" when the target is not an object"
|
|
98
|
+
},
|
|
99
|
+
"common": {
|
|
100
|
+
"notImplementedMethod": "The method \"{method}\" has not been implemented",
|
|
101
|
+
"validation": "Validation failed"
|
|
102
|
+
},
|
|
103
|
+
"factory": {
|
|
104
|
+
"noUnregister": "There is no {typeName} registered with the name \"{name}\"",
|
|
105
|
+
"noGet": "The requested {typeName} \"{name}\" does not exist in the factory"
|
|
106
|
+
},
|
|
107
|
+
"bitString": {
|
|
108
|
+
"outOfRange": "The index should be >= 0 and less than the length of the bit string"
|
|
109
|
+
},
|
|
110
|
+
"base32": {
|
|
111
|
+
"invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
|
|
112
|
+
},
|
|
113
|
+
"base64": {
|
|
114
|
+
"length4Multiple": "Invalid length should be a multiple of 4, it is \"{value}\""
|
|
115
|
+
},
|
|
116
|
+
"base58": {
|
|
117
|
+
"invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
|
|
118
|
+
},
|
|
119
|
+
"jsonHelper": {
|
|
120
|
+
"failedPatch": "Failed to patch the JSON object, patch index \"{index}\" failed"
|
|
121
|
+
},
|
|
122
|
+
"bip39": {
|
|
123
|
+
"missingMnemonicWord": "The mnemonic contains a word not in the wordlist, \"{value}\"",
|
|
124
|
+
"checksumMismatch": "The checksum does not match \"{newChecksum}\" != \"{checksumBits}\""
|
|
125
|
+
},
|
|
126
|
+
"ed25519": {
|
|
127
|
+
"privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
|
|
128
|
+
"publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
|
|
129
|
+
},
|
|
130
|
+
"secp256k1": {
|
|
131
|
+
"privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
|
|
132
|
+
"publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
|
|
133
|
+
},
|
|
134
|
+
"x25519": {
|
|
135
|
+
"invalidPublicKey": "Invalid Ed25519 Public Key"
|
|
136
|
+
},
|
|
137
|
+
"blake2b": {
|
|
138
|
+
"outputLength64": "The output length should be between 1 and 64, it is \"{outputLength}\"",
|
|
139
|
+
"keyLength64": "The key length should be between 1 and 64, it is \"{keyLength}\""
|
|
140
|
+
},
|
|
141
|
+
"sha512": {
|
|
142
|
+
"bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
|
|
143
|
+
},
|
|
144
|
+
"sha256": {
|
|
145
|
+
"bitSize": "Only 224 or 256 bits are supported, it is \"{bitSize}\""
|
|
146
|
+
},
|
|
147
|
+
"sha3": {
|
|
148
|
+
"bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
|
|
149
|
+
},
|
|
150
|
+
"hmacSha256": {
|
|
151
|
+
"bitSize": "Only 224 or 256 bits are supported, it is \"{bitSize}\""
|
|
152
|
+
},
|
|
153
|
+
"hmacSha512": {
|
|
154
|
+
"bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
|
|
155
|
+
},
|
|
156
|
+
"bech32": {
|
|
157
|
+
"decodeFailed": "The address contains decoding failed for address \"{bech32}\"",
|
|
158
|
+
"invalidChecksum": "The address contains an invalid checksum in address, \"{bech32}\"",
|
|
159
|
+
"separatorMisused": "The separator character '1' should only be used between hrp and data, \"{bech32}\"",
|
|
160
|
+
"lowerUpper": "The address my use either lowercase or uppercase, \"{bech32}\"",
|
|
161
|
+
"dataTooShort": "The address does not contain enough data to decode, \"{bech32}\""
|
|
162
|
+
},
|
|
163
|
+
"pbkdf2": {
|
|
164
|
+
"keyTooLong": "The requested key length \"{keyLength}\" is too long, based on the \"{macLength}\""
|
|
165
|
+
},
|
|
166
|
+
"chaCha20Poly1305": {
|
|
167
|
+
"noAadWithData": "You can not set the aad when there is already data",
|
|
168
|
+
"noAuthTag": "Can not finalise when the auth tag is not set",
|
|
169
|
+
"authenticationFailed": "The data could not be authenticated",
|
|
170
|
+
"authTagDecrypting": "Can not get the auth tag when decrypting",
|
|
171
|
+
"authTagEncrypting": "Can not set the auth tag when encrypting",
|
|
172
|
+
"noAuthTagSet": "The auth tag has not been set"
|
|
173
|
+
},
|
|
174
|
+
"bip44": {
|
|
175
|
+
"unsupportedKeyType": "The key type \"{keyType}\" is not supported"
|
|
176
|
+
},
|
|
177
|
+
"slip0010": {
|
|
178
|
+
"invalidSeed": "The seed is invalid \"{seed}\""
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"cli": {
|
|
182
|
+
"progress": {
|
|
183
|
+
"done": "Done.",
|
|
184
|
+
"error": "Error",
|
|
185
|
+
"loadingEnvFiles": "Loading env files",
|
|
186
|
+
"pleaseWait": "Please wait...",
|
|
187
|
+
"writingJsonFile": "Writing JSON file",
|
|
188
|
+
"writingEnvFile": "Writing env file",
|
|
189
|
+
"readingJsonFile": "Reading JSON file",
|
|
190
|
+
"readingEnvFile": "Reading env file"
|
|
191
|
+
},
|
|
192
|
+
"options": {
|
|
193
|
+
"lang": {
|
|
194
|
+
"param": "--lang '<'lang'>'",
|
|
195
|
+
"description": "The language to display the output in."
|
|
196
|
+
},
|
|
197
|
+
"load-env": {
|
|
198
|
+
"param": "--load-env [env...]",
|
|
199
|
+
"description": "Load the env files to initialise any environment variables."
|
|
200
|
+
},
|
|
201
|
+
"no-console": {
|
|
202
|
+
"param": "--no-console",
|
|
203
|
+
"description": "Hides the output in the console."
|
|
204
|
+
},
|
|
205
|
+
"json": {
|
|
206
|
+
"param": "--json '<'filename'>'",
|
|
207
|
+
"description": "Creates a JSON file containing the output."
|
|
208
|
+
},
|
|
209
|
+
"env": {
|
|
210
|
+
"param": "--env '<'filename'>'",
|
|
211
|
+
"description": "Creates an env file containing the output."
|
|
212
|
+
},
|
|
213
|
+
"merge-json": {
|
|
214
|
+
"param": "--merge-json",
|
|
215
|
+
"description": "If the JSON file already exists merge the data instead of overwriting."
|
|
216
|
+
},
|
|
217
|
+
"merge-env": {
|
|
218
|
+
"param": "--merge-env",
|
|
219
|
+
"description": "If the env file already exists merge the data instead of overwriting."
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"errorNames": {
|
|
224
|
+
"error": "Error",
|
|
225
|
+
"generalError": "General",
|
|
226
|
+
"guardError": "Guard",
|
|
227
|
+
"conflictError": "Conflict",
|
|
228
|
+
"notFoundError": "Not Found",
|
|
229
|
+
"notSupportedError": "Not Supported",
|
|
230
|
+
"alreadyExistsError": "Already Exists",
|
|
231
|
+
"notImplementedError": "Not Implemented",
|
|
232
|
+
"validationError": "Validation",
|
|
233
|
+
"unprocessableError": "Unprocessable"
|
|
234
|
+
},
|
|
235
|
+
"validation": {
|
|
236
|
+
"defaultFieldName": "The field"
|
|
237
|
+
},
|
|
238
|
+
"commands": {
|
|
239
|
+
"merge-locales": {
|
|
240
|
+
"options": {
|
|
241
|
+
"config": {
|
|
242
|
+
"param": "--config '<'file'>'",
|
|
243
|
+
"description": "Path to the JSON configuration file."
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"progress": {
|
|
247
|
+
"loadingConfigJson": "Loading Config JSON",
|
|
248
|
+
"creatingOutputDirectory": "Creating Output Directory",
|
|
249
|
+
"writingMergedLocales": "Writing Merged Locales",
|
|
250
|
+
"mergingLocalesForPackage": "Merging Locales for Package"
|
|
251
|
+
},
|
|
252
|
+
"labels": {
|
|
253
|
+
"configJson": "Config JSON",
|
|
254
|
+
"workingDirectory": "Working Directory",
|
|
255
|
+
"outputDirectory": "Output Directory",
|
|
256
|
+
"npmRoot": "NPM Root",
|
|
257
|
+
"sourcePackages": "Source Packages",
|
|
258
|
+
"writingLocale": "Writing Locale",
|
|
259
|
+
"mergingLocale": "Merging Locale"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,242 @@
|
|
|
1
1
|
# @twin.org/ts-to-openapi - Changelog
|
|
2
2
|
|
|
3
|
-
## v0.0.1-next.
|
|
3
|
+
## [0.0.1-next.70](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.1-next.69...merge-locales-v0.0.1-next.70) (2025-07-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* The following workspace dependencies were updated
|
|
19
|
+
* dependencies
|
|
20
|
+
* @twin.org/cli-core bumped from 0.0.1-next.69 to 0.0.1-next.70
|
|
21
|
+
* @twin.org/core bumped from 0.0.1-next.69 to 0.0.1-next.70
|
|
22
|
+
* @twin.org/nameof bumped from 0.0.1-next.69 to 0.0.1-next.70
|
|
23
|
+
* devDependencies
|
|
24
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.69 to 0.0.1-next.70
|
|
25
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.69 to 0.0.1-next.70
|
|
26
|
+
|
|
27
|
+
## [0.0.1-next.69](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.1-next.68...merge-locales-v0.0.1-next.69) (2025-07-02)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Dependencies
|
|
41
|
+
|
|
42
|
+
* The following workspace dependencies were updated
|
|
43
|
+
* dependencies
|
|
44
|
+
* @twin.org/cli-core bumped from 0.0.1-next.68 to 0.0.1-next.69
|
|
45
|
+
* @twin.org/core bumped from 0.0.1-next.68 to 0.0.1-next.69
|
|
46
|
+
* @twin.org/nameof bumped from 0.0.1-next.68 to 0.0.1-next.69
|
|
47
|
+
* devDependencies
|
|
48
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.68 to 0.0.1-next.69
|
|
49
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.68 to 0.0.1-next.69
|
|
50
|
+
|
|
51
|
+
## [0.0.1-next.68](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.1-next.67...merge-locales-v0.0.1-next.68) (2025-07-02)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Dependencies
|
|
60
|
+
|
|
61
|
+
* The following workspace dependencies were updated
|
|
62
|
+
* dependencies
|
|
63
|
+
* @twin.org/cli-core bumped from 0.0.1-next.67 to 0.0.1-next.68
|
|
64
|
+
* @twin.org/core bumped from 0.0.1-next.67 to 0.0.1-next.68
|
|
65
|
+
* @twin.org/nameof bumped from 0.0.1-next.67 to 0.0.1-next.68
|
|
66
|
+
* devDependencies
|
|
67
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.67 to 0.0.1-next.68
|
|
68
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.67 to 0.0.1-next.68
|
|
69
|
+
|
|
70
|
+
## [0.0.1-next.28](https://github.com/twinfoundation/tools/compare/merge-locales-v0.0.1-next.27...merge-locales-v0.0.1-next.28) (2025-06-18)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Miscellaneous Chores
|
|
74
|
+
|
|
75
|
+
* **merge-locales:** Synchronize repo versions
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Dependencies
|
|
79
|
+
|
|
80
|
+
* The following workspace dependencies were updated
|
|
81
|
+
* dependencies
|
|
82
|
+
* @twin.org/nameof bumped from 0.0.1-next.27 to 0.0.1-next.28
|
|
83
|
+
* devDependencies
|
|
84
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.27 to 0.0.1-next.28
|
|
85
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.27 to 0.0.1-next.28
|
|
86
|
+
|
|
87
|
+
## [0.0.1-next.27](https://github.com/twinfoundation/tools/compare/merge-locales-v0.0.1-next.26...merge-locales-v0.0.1-next.27) (2025-06-17)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Miscellaneous Chores
|
|
91
|
+
|
|
92
|
+
* **merge-locales:** Synchronize repo versions
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Dependencies
|
|
96
|
+
|
|
97
|
+
* The following workspace dependencies were updated
|
|
98
|
+
* dependencies
|
|
99
|
+
* @twin.org/nameof bumped from 0.0.1-next.26 to 0.0.1-next.27
|
|
100
|
+
* devDependencies
|
|
101
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.26 to 0.0.1-next.27
|
|
102
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.26 to 0.0.1-next.27
|
|
103
|
+
|
|
104
|
+
## [0.0.1-next.26](https://github.com/twinfoundation/tools/compare/merge-locales-v0.0.1-next.25...merge-locales-v0.0.1-next.26) (2025-06-11)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Miscellaneous Chores
|
|
108
|
+
|
|
109
|
+
* **merge-locales:** Synchronize repo versions
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Dependencies
|
|
113
|
+
|
|
114
|
+
* The following workspace dependencies were updated
|
|
115
|
+
* dependencies
|
|
116
|
+
* @twin.org/nameof bumped from 0.0.1-next.25 to 0.0.1-next.26
|
|
117
|
+
* devDependencies
|
|
118
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.25 to 0.0.1-next.26
|
|
119
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.25 to 0.0.1-next.26
|
|
120
|
+
|
|
121
|
+
## [0.0.1-next.25](https://github.com/twinfoundation/tools/compare/merge-locales-v0.0.1-next.24...merge-locales-v0.0.1-next.25) (2025-06-10)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Features
|
|
125
|
+
|
|
126
|
+
* add ts-to-schema overrides ([3c54504](https://github.com/twinfoundation/tools/commit/3c5450468eb998204a75576b7791a7ca4027da62))
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Dependencies
|
|
130
|
+
|
|
131
|
+
* The following workspace dependencies were updated
|
|
132
|
+
* dependencies
|
|
133
|
+
* @twin.org/nameof bumped from 0.0.1-next.24 to 0.0.1-next.25
|
|
134
|
+
* devDependencies
|
|
135
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.24 to 0.0.1-next.25
|
|
136
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.24 to 0.0.1-next.25
|
|
137
|
+
|
|
138
|
+
## [0.0.1-next.24](https://github.com/twinfoundation/tools/compare/merge-locales-v0.0.1-next.23...merge-locales-v0.0.1-next.24) (2025-06-05)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
### Miscellaneous Chores
|
|
142
|
+
|
|
143
|
+
* **merge-locales:** Synchronize repo versions
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Dependencies
|
|
147
|
+
|
|
148
|
+
* The following workspace dependencies were updated
|
|
149
|
+
* dependencies
|
|
150
|
+
* @twin.org/nameof bumped from 0.0.1-next.23 to 0.0.1-next.24
|
|
151
|
+
* devDependencies
|
|
152
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.23 to 0.0.1-next.24
|
|
153
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.23 to 0.0.1-next.24
|
|
154
|
+
|
|
155
|
+
## [0.0.1-next.23](https://github.com/twinfoundation/tools/compare/merge-locales-v0.0.1-next.22...merge-locales-v0.0.1-next.23) (2025-06-03)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### Miscellaneous Chores
|
|
159
|
+
|
|
160
|
+
* **merge-locales:** Synchronize repo versions
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Dependencies
|
|
164
|
+
|
|
165
|
+
* The following workspace dependencies were updated
|
|
166
|
+
* dependencies
|
|
167
|
+
* @twin.org/nameof bumped from 0.0.1-next.22 to 0.0.1-next.23
|
|
168
|
+
* devDependencies
|
|
169
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.22 to 0.0.1-next.23
|
|
170
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.22 to 0.0.1-next.23
|
|
171
|
+
|
|
172
|
+
## [0.0.1-next.22](https://github.com/twinfoundation/tools/compare/merge-locales-v0.0.1-next.21...merge-locales-v0.0.1-next.22) (2025-06-03)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Miscellaneous Chores
|
|
176
|
+
|
|
177
|
+
* **merge-locales:** Synchronize repo versions
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Dependencies
|
|
181
|
+
|
|
182
|
+
* The following workspace dependencies were updated
|
|
183
|
+
* dependencies
|
|
184
|
+
* @twin.org/nameof bumped from 0.0.1-next.21 to 0.0.1-next.22
|
|
185
|
+
* devDependencies
|
|
186
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.21 to 0.0.1-next.22
|
|
187
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.21 to 0.0.1-next.22
|
|
188
|
+
|
|
189
|
+
## [0.0.1-next.21](https://github.com/twinfoundation/tools/compare/merge-locales-v0.0.1-next.20...merge-locales-v0.0.1-next.21) (2025-04-17)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### Features
|
|
193
|
+
|
|
194
|
+
* use shared store mechanism ([#31](https://github.com/twinfoundation/tools/issues/31)) ([d9fe68b](https://github.com/twinfoundation/tools/commit/d9fe68b903d1268c7cb3c64772df5cb78fd63667))
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
### Dependencies
|
|
198
|
+
|
|
199
|
+
* The following workspace dependencies were updated
|
|
200
|
+
* dependencies
|
|
201
|
+
* @twin.org/nameof bumped from 0.0.1-next.20 to 0.0.1-next.21
|
|
202
|
+
* devDependencies
|
|
203
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.20 to 0.0.1-next.21
|
|
204
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.20 to 0.0.1-next.21
|
|
205
|
+
|
|
206
|
+
## [0.0.1-next.20](https://github.com/twinfoundation/tools/compare/merge-locales-v0.0.1-next.19...merge-locales-v0.0.1-next.20) (2025-03-28)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### Miscellaneous Chores
|
|
210
|
+
|
|
211
|
+
* **merge-locales:** Synchronize repo versions
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
### Dependencies
|
|
215
|
+
|
|
216
|
+
* The following workspace dependencies were updated
|
|
217
|
+
* dependencies
|
|
218
|
+
* @twin.org/nameof bumped from 0.0.1-next.19 to 0.0.1-next.20
|
|
219
|
+
* devDependencies
|
|
220
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.19 to 0.0.1-next.20
|
|
221
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.19 to 0.0.1-next.20
|
|
222
|
+
|
|
223
|
+
## [0.0.1-next.19](https://github.com/twinfoundation/tools/compare/merge-locales-v0.0.1-next.18...merge-locales-v0.0.1-next.19) (2025-03-26)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
### Miscellaneous Chores
|
|
227
|
+
|
|
228
|
+
* **merge-locales:** Synchronize repo versions
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Dependencies
|
|
232
|
+
|
|
233
|
+
* The following workspace dependencies were updated
|
|
234
|
+
* dependencies
|
|
235
|
+
* @twin.org/nameof bumped from 0.0.1-next.18 to 0.0.1-next.19
|
|
236
|
+
* devDependencies
|
|
237
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.18 to 0.0.1-next.19
|
|
238
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.18 to 0.0.1-next.19
|
|
239
|
+
|
|
240
|
+
## v0.0.1-next.18
|
|
4
241
|
|
|
5
242
|
- Initial Release
|
|
@@ -8,13 +8,13 @@ The main entry point for the CLI.
|
|
|
8
8
|
|
|
9
9
|
## Constructors
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Constructor
|
|
12
12
|
|
|
13
|
-
> **new CLI**():
|
|
13
|
+
> **new CLI**(): `CLI`
|
|
14
14
|
|
|
15
15
|
#### Returns
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
`CLI`
|
|
18
18
|
|
|
19
19
|
#### Inherited from
|
|
20
20
|
|
|
@@ -24,25 +24,31 @@ The main entry point for the CLI.
|
|
|
24
24
|
|
|
25
25
|
### run()
|
|
26
26
|
|
|
27
|
-
> **run**(`argv`, `localesDirectory
|
|
27
|
+
> **run**(`argv`, `localesDirectory?`, `options?`): `Promise`\<`number`\>
|
|
28
28
|
|
|
29
29
|
Run the app.
|
|
30
30
|
|
|
31
31
|
#### Parameters
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
##### argv
|
|
34
|
+
|
|
35
|
+
`string`[]
|
|
34
36
|
|
|
35
37
|
The process arguments.
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
##### localesDirectory?
|
|
40
|
+
|
|
41
|
+
`string`
|
|
38
42
|
|
|
39
43
|
The directory for the locales, default to relative to the script.
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
##### options?
|
|
42
46
|
|
|
43
47
|
Additional options.
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
###### overrideOutputWidth?
|
|
50
|
+
|
|
51
|
+
`number`
|
|
46
52
|
|
|
47
53
|
Override the output width.
|
|
48
54
|
|
|
@@ -62,7 +68,9 @@ Configure any options or actions at the root program level.
|
|
|
62
68
|
|
|
63
69
|
#### Parameters
|
|
64
70
|
|
|
65
|
-
|
|
71
|
+
##### program
|
|
72
|
+
|
|
73
|
+
`Command`
|
|
66
74
|
|
|
67
75
|
The root program command.
|
|
68
76
|
|
|
@@ -6,11 +6,15 @@ Merge the locales.
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### workingDirectory
|
|
10
|
+
|
|
11
|
+
`string`
|
|
10
12
|
|
|
11
13
|
The folder the app was run from.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
### config
|
|
16
|
+
|
|
17
|
+
[`IMergeLocalesConfig`](../interfaces/IMergeLocalesConfig.md)
|
|
14
18
|
|
|
15
19
|
The configuration for the app.
|
|
16
20
|
|
package/locales/en.json
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/merge-locales",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.70",
|
|
4
4
|
"description": "Tool to merge locale files from all dependencies",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/twinfoundation/
|
|
8
|
-
"directory": "
|
|
7
|
+
"url": "git+https://github.com/twinfoundation/framework.git",
|
|
8
|
+
"directory": "apps/merge-locales"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
11
11
|
"license": "Apache-2.0",
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/cli-core": "next",
|
|
18
|
-
"@twin.org/core": "next",
|
|
19
|
-
"@twin.org/nameof": "0.0.1-next.
|
|
20
|
-
"commander": "
|
|
21
|
-
"glob": "11.0.
|
|
17
|
+
"@twin.org/cli-core": "0.0.1-next.70",
|
|
18
|
+
"@twin.org/core": "0.0.1-next.70",
|
|
19
|
+
"@twin.org/nameof": "0.0.1-next.70",
|
|
20
|
+
"commander": "14.0.0",
|
|
21
|
+
"glob": "11.0.2"
|
|
22
22
|
},
|
|
23
23
|
"main": "./dist/cjs/index.cjs",
|
|
24
24
|
"module": "./dist/esm/index.mjs",
|
|
25
25
|
"types": "./dist/types/index.d.ts",
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
|
+
"types": "./dist/types/index.d.ts",
|
|
28
29
|
"require": "./dist/cjs/index.cjs",
|
|
29
|
-
"import": "./dist/esm/index.mjs"
|
|
30
|
-
"types": "./dist/types/index.d.ts"
|
|
30
|
+
"import": "./dist/esm/index.mjs"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"files": [
|