@uipath/flow-tool 1.203.0-preview.205 → 1.204.0-preview.206
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 +4 -0
- package/dist/THIRD-PARTY-NOTICES.md +237 -2
- package/dist/authoring-4kyzh1tf.js +23 -0
- package/dist/{binding-service-ft8mabkr.js → binding-service-815skxfx.js} +28 -30
- package/dist/{connector-service-qnpnwzpv.js → connector-service-xw4f8a7v.js} +34 -31
- package/dist/{conversion-FQTRFHRX-xh98wp2q.js → conversion-FQTRFHRX-1q7rk0te.js} +5 -5
- package/dist/{debug-conversation-trigger-fy19ygsm.js → debug-conversation-trigger-qdgvrekh.js} +14 -16
- package/dist/{debug-http-client-53qk6pc5.js → debug-http-client-s78gbtbn.js} +3 -3
- package/dist/{debug-service-nyk0s6mc.js → debug-service-0ppdzgzv.js} +4 -4
- package/dist/{edge-service-an71q4ry.js → edge-service-ttzfnxkf.js} +13 -14
- package/dist/{embedded-file-reader-0sjt4nkj.js → embedded-file-reader-v8c2yj2a.js} +2 -2
- package/dist/{flow-api-2phdajnk.js → flow-api-b7k5dtpm.js} +8 -8
- package/dist/{flow-debug-service-bnzgj53b.js → flow-debug-service-4we602jx.js} +38 -35
- package/dist/{flow-eval-node-target-2mjben3g.js → flow-eval-node-target-331vzbkw.js} +14 -15
- package/dist/{flow-eval-run-api-1bw5e0k4.js → flow-eval-run-api-yq18x5rb.js} +4 -4
- package/dist/{flow-eval-run-service-qv8j8fd1.js → flow-eval-run-service-36h1bnm8.js} +40 -37
- package/dist/{flow-eval-service-amd02ctw.js → flow-eval-service-ndtk9f9j.js} +19 -20
- package/dist/flow-init-sdk-source-9fy9p8ap.js +58 -0
- package/dist/{flow-init-service-rnygj5f8.js → flow-init-service-kwhbdtpc.js} +19 -18
- package/dist/{flow-io-hddhkve5.js → flow-io-pt392xct.js} +13 -14
- package/dist/{flow-migrate-service-e3hm99gp.js → flow-migrate-service-xvz8pbmp.js} +14 -15
- package/dist/{flow-pack-service-g8jebcts.js → flow-pack-service-wg1kt2bt.js} +72 -39
- package/dist/flow-validate-service-xbhrj47n.js +64 -0
- package/dist/{governance-fetcher-cswx2cw7.js → governance-fetcher-5yy89pfd.js} +6 -5
- package/dist/{headless-mmnrkzve.js → headless-1pdmae01.js} +2 -2
- package/dist/{hitl-service-a4fmjrzh.js → hitl-service-q2d39v5s.js} +13 -14
- package/dist/{index-3ts7y9d3.js → index-2s8rmmw6.js} +5 -3
- package/dist/index-3jpjaq1g.js +26 -0
- package/dist/{index-t5zedby6.js → index-41vyzws2.js} +59 -27
- package/dist/{index-b46bavh7.js → index-5yw15y73.js} +2 -2
- package/dist/{index-212q16sv.js → index-7qw3ttge.js} +416 -87
- package/dist/{index-t8e0ft8r.js → index-c1q6mnw1.js} +3 -3
- package/dist/{index-xa7gm52r.js → index-dqqg54v6.js} +601 -61
- package/dist/index.js +10 -10
- package/dist/init.d.ts +1 -1
- package/dist/init.js +19 -18
- package/dist/{input-reader-tw0j373f.js → input-reader-bv7kt19c.js} +2 -2
- package/dist/{known-types-b64as10y.js → known-types-jhyhnkt6.js} +4 -4
- package/dist/{maestro-automate-entry-pqy9xqm3.js → maestro-automate-entry-qak46eg0.js} +2 -2
- package/dist/node-2whm5wkf.js +4823 -0
- package/dist/{node-service-qnny15cm.js → node-service-js01ft95.js} +31 -30
- package/dist/{node-strategy-gc4sg6a2.js → node-strategy-fdnkvq4a.js} +1 -1
- package/dist/{node-sync-service-f1x1ak6q.js → node-sync-service-pb3m4dp2.js} +9 -9
- package/dist/{packager-tool-et7wj8kr.js → packager-tool-0w4es6rz.js} +2 -2
- package/dist/{packager-tool-dph5p2f5.js → packager-tool-1mnq1c97.js} +1 -1
- package/dist/packager-tool-225z77w9.js +52 -0
- package/dist/{packager-tool-de2txaxx.js → packager-tool-2hzsf1rc.js} +5 -5
- package/dist/{packager-tool-vbser1d9.js → packager-tool-2qr8z5ke.js} +4 -4
- package/dist/{packager-tool-0egkaa38.js → packager-tool-32czz9mq.js} +2 -2
- package/dist/{packager-tool-0v3s8r01.js → packager-tool-3h2ktz6q.js} +2 -2
- package/dist/{packager-tool-h9d8c9rf.js → packager-tool-4zdhy0c3.js} +2 -2
- package/dist/{packager-tool-afd1wwf2.js → packager-tool-53c81nnr.js} +440 -29
- package/dist/{packager-tool-2c688mdj.js → packager-tool-57fak54h.js} +4 -4
- package/dist/{packager-tool-qa2xzxez.js → packager-tool-59s95scr.js} +1 -1
- package/dist/{packager-tool-n8p9cay6.js → packager-tool-6azk3rex.js} +1 -1
- package/dist/{packager-tool-26ydwf12.js → packager-tool-6h69pd2a.js} +23 -8
- package/dist/{packager-tool-mnrbdn6a.js → packager-tool-6scjsgh6.js} +55 -17
- package/dist/{packager-tool-xzf4xc65.js → packager-tool-70cta0be.js} +4 -4
- package/dist/{packager-tool-tw3j5h3z.js → packager-tool-8hj7w7em.js} +5 -5
- package/dist/{packager-tool-795gzq9k.js → packager-tool-8pmgk4f6.js} +1 -1
- package/dist/{packager-tool-321a1806.js → packager-tool-8vmx4j2w.js} +1 -1
- package/dist/{packager-tool-cnftzx4c.js → packager-tool-a6ph7149.js} +40 -11
- package/dist/{packager-tool-s0mzv3sx.js → packager-tool-aw60v0et.js} +1 -1
- package/dist/{packager-tool-e89k4pjj.js → packager-tool-c0rtxezv.js} +1 -1
- package/dist/{packager-tool-1w4f09cq.js → packager-tool-d0ny3x3b.js} +141 -96
- package/dist/{packager-tool-gzpvdcnw.js → packager-tool-da1cmt0q.js} +2 -2
- package/dist/{packager-tool-p8j4zvrq.js → packager-tool-dp8vjby4.js} +4829 -1364
- package/dist/packager-tool-e5hj89zm.js +6 -0
- package/dist/{packager-tool-fwp34rqp.js → packager-tool-ev80vk13.js} +8 -8
- package/dist/{packager-tool-gctpkdzs.js → packager-tool-hhy1gr2k.js} +1 -1
- package/dist/{packager-tool-sf9f6jft.js → packager-tool-hygq2wy6.js} +1 -1
- package/dist/{packager-tool-0v3tzseq.js → packager-tool-jeb6xmgw.js} +2 -2
- package/dist/packager-tool-krzxg3ga.js +804 -0
- package/dist/{packager-tool-1r5dnt9q.js → packager-tool-mv4jav1h.js} +1 -1
- package/dist/{packager-tool-pppzgwfw.js → packager-tool-n4vdjmjx.js} +18079 -18079
- package/dist/{packager-tool-t9c77psy.js → packager-tool-p1tb6d4f.js} +955 -150
- package/dist/{packager-tool-gs28y1eq.js → packager-tool-qhhrq12s.js} +2 -2
- package/dist/{packager-tool-6k8s7pt9.js → packager-tool-r7xy9sew.js} +1090 -545
- package/dist/{packager-tool-b1xs6aty.js → packager-tool-stq8800d.js} +902 -897
- package/dist/{packager-tool-61r38k4d.js → packager-tool-t57d6pzz.js} +320 -200
- package/dist/{packager-tool-a7t9v5ss.js → packager-tool-v9v9ch04.js} +2 -2
- package/dist/{packager-tool-cdn59g60.js → packager-tool-ve5t7317.js} +2 -2
- package/dist/{packager-tool-yxv9mm8s.js → packager-tool-vtaqtf7f.js} +10 -10
- package/dist/{packager-tool-t39edv0g.js → packager-tool-w3dy6vnj.js} +184 -193
- package/dist/{packager-tool-9kx94sj5.js → packager-tool-x5qafkb7.js} +2 -2
- package/dist/{packager-tool-s841bbkr.js → packager-tool-yednpbbw.js} +2 -2
- package/dist/{packager-tool-yxnepq2j.js → packager-tool-ysbskrta.js} +1 -1
- package/dist/packager-tool-zgsvggdr.js +50 -0
- package/dist/packager-tool.js +12 -13
- package/dist/{serialization-BXU6AKAN-rhgmwp06.js → serialization-BXU6AKAN-c2ge8yvb.js} +5 -5
- package/dist/services/flow-init-sdk-source.d.ts +28 -0
- package/dist/services/flow-init-service.d.ts +25 -0
- package/dist/services/inline-activity-service.d.ts +135 -0
- package/dist/services/node-service.d.ts +14 -0
- package/dist/services/node-validators/index.d.ts +2 -0
- package/dist/services/node-validators/inline-activity-validator.d.ts +18 -0
- package/dist/services/node-validators/types.d.ts +6 -0
- package/dist/services/node-validators/unresolved-binding-placeholder-validator.d.ts +2 -0
- package/dist/services/preview-id-rule.d.ts +33 -0
- package/dist/services/ui-only-node-types.d.ts +1 -0
- package/dist/{shared-utils-wv356cvj.js → shared-utils-9vfmrxtx.js} +2 -2
- package/dist/{packager-tool-es0a755k.js → tidy-service-q2wwwans.js} +33 -7
- package/dist/tool.js +10 -10
- package/dist/utils/flow-io.d.ts +3 -16
- package/dist/validation.js +35 -36
- package/dist/{variable-service-bc7920kx.js → variable-service-nm9fdwsw.js} +13 -14
- package/dist/{wait-for-flow-job-v0njb0dk.js → wait-for-flow-job-yzyamptd.js} +8 -8
- package/package.json +2 -2
- package/dist/authoring-tv4dh80p.js +0 -360
- package/dist/flow-validate-service-x9dtdrc7.js +0 -65
- package/dist/node-xdgxafqs.js +0 -15600
- package/dist/packager-tool-2513jrxr.js +0 -898
- package/dist/packager-tool-5kt8tsq4.js +0 -85
- package/dist/packager-tool-w0kr4mbc.js +0 -996
- package/dist/services/tidy-service.d.ts +0 -26
- package/dist/tidy-service-8y2tjmb5.js +0 -39
- /package/dist/{localization-y790z9vm.js → localization-xecwjpe2.js} +0 -0
|
@@ -1,996 +0,0 @@
|
|
|
1
|
-
// ../packager/packager-core/src/filesystem/path.ts
|
|
2
|
-
class Path {
|
|
3
|
-
static normalize(path) {
|
|
4
|
-
return path.replace(/\\/g, "/").replace(/\/+/g, "/");
|
|
5
|
-
}
|
|
6
|
-
static join(...segments) {
|
|
7
|
-
return Path.normalize(segments.filter((s) => s.length > 0).join("/"));
|
|
8
|
-
}
|
|
9
|
-
static dirname(path) {
|
|
10
|
-
const normalized = Path.normalize(path).replace(/\/$/, "");
|
|
11
|
-
if (normalized === "")
|
|
12
|
-
return ".";
|
|
13
|
-
const lastSlash = normalized.lastIndexOf("/");
|
|
14
|
-
if (lastSlash === -1)
|
|
15
|
-
return ".";
|
|
16
|
-
if (lastSlash === 0)
|
|
17
|
-
return "/";
|
|
18
|
-
return normalized.substring(0, lastSlash);
|
|
19
|
-
}
|
|
20
|
-
static basename(path) {
|
|
21
|
-
const normalized = Path.normalize(path).replace(/\/$/, "");
|
|
22
|
-
if (normalized === "")
|
|
23
|
-
return "";
|
|
24
|
-
const lastSlash = normalized.lastIndexOf("/");
|
|
25
|
-
return lastSlash >= 0 ? normalized.substring(lastSlash + 1) : normalized;
|
|
26
|
-
}
|
|
27
|
-
static extname(path) {
|
|
28
|
-
const base = Path.basename(path);
|
|
29
|
-
const lastDot = base.lastIndexOf(".");
|
|
30
|
-
if (lastDot === -1 || lastDot === 0 || lastDot === base.length - 1) {
|
|
31
|
-
return "";
|
|
32
|
-
}
|
|
33
|
-
return base.substring(lastDot);
|
|
34
|
-
}
|
|
35
|
-
static async walkDirectory(fs, rootPath, currentRelativePath = "") {
|
|
36
|
-
const entries = [];
|
|
37
|
-
const absolutePath = currentRelativePath ? Path.join(rootPath, currentRelativePath) : rootPath;
|
|
38
|
-
const items = await fs.readdir(absolutePath);
|
|
39
|
-
for (const item of items) {
|
|
40
|
-
const itemRelativePath = currentRelativePath ? Path.join(currentRelativePath, item) : item;
|
|
41
|
-
const itemAbsolutePath = Path.join(rootPath, itemRelativePath);
|
|
42
|
-
const stat = await fs.stat(itemAbsolutePath);
|
|
43
|
-
if (stat?.isDirectory()) {
|
|
44
|
-
const subEntries = await Path.walkDirectory(fs, rootPath, itemRelativePath);
|
|
45
|
-
entries.push(...subEntries);
|
|
46
|
-
} else if (stat?.isFile()) {
|
|
47
|
-
entries.push({
|
|
48
|
-
relativePath: Path.normalize(itemRelativePath),
|
|
49
|
-
absolutePath: Path.normalize(itemAbsolutePath)
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return entries;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// ../packager/packager-core/src/services/project-id.ts
|
|
58
|
-
var OPERATE_FILE = "operate.json";
|
|
59
|
-
var PROJECT_FILE = "project.json";
|
|
60
|
-
function isNonEmptyString(value) {
|
|
61
|
-
return typeof value === "string" && value.length > 0;
|
|
62
|
-
}
|
|
63
|
-
async function readJsonObject(fs, filePath) {
|
|
64
|
-
let content;
|
|
65
|
-
try {
|
|
66
|
-
content = await fs.readFile(filePath, "utf-8");
|
|
67
|
-
} catch {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
if (content === null) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
try {
|
|
74
|
-
const parsed = JSON.parse(content);
|
|
75
|
-
if (parsed === null || typeof parsed !== "object") {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
return parsed;
|
|
79
|
-
} catch {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
async function writeJsonObject(fs, filePath, data) {
|
|
84
|
-
await fs.writeFile(filePath, `${JSON.stringify(data, null, 2)}
|
|
85
|
-
`);
|
|
86
|
-
}
|
|
87
|
-
async function ensureProjectId(projectPath, fs) {
|
|
88
|
-
const operatePath = Path.join(projectPath, OPERATE_FILE);
|
|
89
|
-
const operateExists = await fs.exists(operatePath);
|
|
90
|
-
if (operateExists) {
|
|
91
|
-
const operate = await readJsonObject(fs, operatePath);
|
|
92
|
-
if (operate && isNonEmptyString(operate.projectId)) {
|
|
93
|
-
return operate.projectId;
|
|
94
|
-
}
|
|
95
|
-
if (operate) {
|
|
96
|
-
const id = crypto.randomUUID();
|
|
97
|
-
await writeJsonObject(fs, operatePath, {
|
|
98
|
-
...operate,
|
|
99
|
-
projectId: id
|
|
100
|
-
});
|
|
101
|
-
return id;
|
|
102
|
-
}
|
|
103
|
-
return crypto.randomUUID();
|
|
104
|
-
}
|
|
105
|
-
const projectFilePath = Path.join(projectPath, PROJECT_FILE);
|
|
106
|
-
const projectFileExists = await fs.exists(projectFilePath);
|
|
107
|
-
if (projectFileExists) {
|
|
108
|
-
const projectFile = await readJsonObject(fs, projectFilePath);
|
|
109
|
-
if (projectFile && isNonEmptyString(projectFile.projectId)) {
|
|
110
|
-
return projectFile.projectId;
|
|
111
|
-
}
|
|
112
|
-
if (projectFile) {
|
|
113
|
-
const id = crypto.randomUUID();
|
|
114
|
-
await writeJsonObject(fs, projectFilePath, {
|
|
115
|
-
...projectFile,
|
|
116
|
-
projectId: id
|
|
117
|
-
});
|
|
118
|
-
return id;
|
|
119
|
-
}
|
|
120
|
-
return crypto.randomUUID();
|
|
121
|
-
}
|
|
122
|
-
return crypto.randomUUID();
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// ../packager/packager-core/src/services/tools-factory-repository.ts
|
|
126
|
-
class ToolsFactoryRepository {
|
|
127
|
-
projectFactoryMap = new Map;
|
|
128
|
-
solutionFactory = null;
|
|
129
|
-
registerProjectToolFactory(factory) {
|
|
130
|
-
for (const type of factory.supportedTypes) {
|
|
131
|
-
const existing = this.projectFactoryMap.get(type);
|
|
132
|
-
if (existing) {
|
|
133
|
-
if (existing.constructor?.name !== factory.constructor?.name) {
|
|
134
|
-
console.warn(`Tool factory conflict for project type '${type}': ` + `'${existing.constructor?.name}' already registered, ` + `ignoring '${factory.constructor?.name}'.`);
|
|
135
|
-
}
|
|
136
|
-
continue;
|
|
137
|
-
}
|
|
138
|
-
this.projectFactoryMap.set(type, factory);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
registerSolutionToolFactory(factory) {
|
|
142
|
-
this.solutionFactory = factory;
|
|
143
|
-
}
|
|
144
|
-
getSolutionToolFactory() {
|
|
145
|
-
if (!this.solutionFactory) {
|
|
146
|
-
throw new Error("No solution tool factory is registered");
|
|
147
|
-
}
|
|
148
|
-
return this.solutionFactory;
|
|
149
|
-
}
|
|
150
|
-
canHandleProject(projectType) {
|
|
151
|
-
return this.projectFactoryMap.has(projectType);
|
|
152
|
-
}
|
|
153
|
-
getProjectToolFactory(projectType) {
|
|
154
|
-
const factory = this.projectFactoryMap.get(projectType);
|
|
155
|
-
if (!factory) {
|
|
156
|
-
throw new Error(`Cannot pack project type '${projectType}': no packager is installed for it.`);
|
|
157
|
-
}
|
|
158
|
-
return factory;
|
|
159
|
-
}
|
|
160
|
-
reset() {
|
|
161
|
-
this.projectFactoryMap.clear();
|
|
162
|
-
this.solutionFactory = null;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
var REGISTRY_KEY = Symbol.for("@uipath/solutionpackager-tool-core/toolsFactoryRepository");
|
|
166
|
-
var _global = globalThis;
|
|
167
|
-
if (!_global[REGISTRY_KEY]) {
|
|
168
|
-
_global[REGISTRY_KEY] = new ToolsFactoryRepository;
|
|
169
|
-
}
|
|
170
|
-
var toolsFactoryRepository = _global[REGISTRY_KEY];
|
|
171
|
-
// ../packager/packager-core/src/i18n/types.ts
|
|
172
|
-
function isPluralForm(value) {
|
|
173
|
-
return typeof value === "object" && value !== null && "other" in value;
|
|
174
|
-
}
|
|
175
|
-
function selectPluralForm(forms, count) {
|
|
176
|
-
if (count === 0 && forms.zero !== undefined) {
|
|
177
|
-
return forms.zero;
|
|
178
|
-
}
|
|
179
|
-
if (count === 1 && forms.one !== undefined) {
|
|
180
|
-
return forms.one;
|
|
181
|
-
}
|
|
182
|
-
if (count === 2 && forms.two !== undefined) {
|
|
183
|
-
return forms.two;
|
|
184
|
-
}
|
|
185
|
-
if (forms.few !== undefined) {
|
|
186
|
-
const mod10 = count % 10;
|
|
187
|
-
const mod100 = count % 100;
|
|
188
|
-
if (mod10 >= 2 && mod10 <= 4 && (mod100 < 10 || mod100 >= 20)) {
|
|
189
|
-
return forms.few;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
if (forms.many !== undefined) {
|
|
193
|
-
const mod10 = count % 10;
|
|
194
|
-
const mod100 = count % 100;
|
|
195
|
-
if (count === 0 || mod10 === 0 && mod100 !== 0 || mod10 >= 5 && mod10 <= 9 || mod100 >= 11 && mod100 <= 14) {
|
|
196
|
-
return forms.many;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return forms.other;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// ../packager/packager-core/src/i18n/i18n-manager.ts
|
|
203
|
-
class I18nManager {
|
|
204
|
-
static translations = {};
|
|
205
|
-
static currentLocale = "en";
|
|
206
|
-
static fallbackLocale = "en";
|
|
207
|
-
static registerTranslations(locale, catalog) {
|
|
208
|
-
if (!I18nManager.translations[locale]) {
|
|
209
|
-
I18nManager.translations[locale] = {};
|
|
210
|
-
}
|
|
211
|
-
I18nManager.translations[locale] = I18nManager.deepMerge(I18nManager.translations[locale], catalog);
|
|
212
|
-
}
|
|
213
|
-
static setLocale(locale) {
|
|
214
|
-
const normalized = I18nManager.normalizeLocale(locale);
|
|
215
|
-
if (I18nManager.translations[normalized]) {
|
|
216
|
-
I18nManager.currentLocale = normalized;
|
|
217
|
-
return normalized;
|
|
218
|
-
}
|
|
219
|
-
const baseLocale = normalized.split("-")[0];
|
|
220
|
-
if (baseLocale !== normalized && I18nManager.translations[baseLocale]) {
|
|
221
|
-
I18nManager.currentLocale = baseLocale;
|
|
222
|
-
return baseLocale;
|
|
223
|
-
}
|
|
224
|
-
return I18nManager.currentLocale;
|
|
225
|
-
}
|
|
226
|
-
static getLocale() {
|
|
227
|
-
return I18nManager.currentLocale;
|
|
228
|
-
}
|
|
229
|
-
static setFallbackLocale(locale) {
|
|
230
|
-
I18nManager.fallbackLocale = I18nManager.normalizeLocale(locale);
|
|
231
|
-
}
|
|
232
|
-
static t(key, params, locale) {
|
|
233
|
-
const targetLocale = locale ? I18nManager.normalizeLocale(locale) : I18nManager.currentLocale;
|
|
234
|
-
let value = I18nManager.getTranslationValue(key, targetLocale);
|
|
235
|
-
if (value === undefined && targetLocale !== I18nManager.fallbackLocale) {
|
|
236
|
-
value = I18nManager.getTranslationValue(key, I18nManager.fallbackLocale);
|
|
237
|
-
}
|
|
238
|
-
if (value === undefined) {
|
|
239
|
-
return key;
|
|
240
|
-
}
|
|
241
|
-
if (isPluralForm(value) && params && "count" in params) {
|
|
242
|
-
const count = typeof params.count === "number" ? params.count : Number(params.count);
|
|
243
|
-
value = selectPluralForm(value, count);
|
|
244
|
-
} else if (isPluralForm(value)) {
|
|
245
|
-
value = value.other;
|
|
246
|
-
}
|
|
247
|
-
if (typeof value !== "string") {
|
|
248
|
-
return key;
|
|
249
|
-
}
|
|
250
|
-
return params ? I18nManager.interpolate(value, params) : value;
|
|
251
|
-
}
|
|
252
|
-
static has(key, locale) {
|
|
253
|
-
const targetLocale = locale ? I18nManager.normalizeLocale(locale) : I18nManager.currentLocale;
|
|
254
|
-
const value = I18nManager.getTranslationValue(key, targetLocale);
|
|
255
|
-
if (value !== undefined) {
|
|
256
|
-
return true;
|
|
257
|
-
}
|
|
258
|
-
if (targetLocale !== I18nManager.fallbackLocale) {
|
|
259
|
-
return I18nManager.getTranslationValue(key, I18nManager.fallbackLocale) !== undefined;
|
|
260
|
-
}
|
|
261
|
-
return false;
|
|
262
|
-
}
|
|
263
|
-
static getAvailableLocales() {
|
|
264
|
-
return Object.keys(I18nManager.translations);
|
|
265
|
-
}
|
|
266
|
-
static clearTranslations() {
|
|
267
|
-
I18nManager.translations = {};
|
|
268
|
-
I18nManager.currentLocale = "en";
|
|
269
|
-
}
|
|
270
|
-
static getTranslationValue(key, locale) {
|
|
271
|
-
const catalog = I18nManager.translations[locale];
|
|
272
|
-
if (!catalog) {
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
const keys = key.split(".");
|
|
276
|
-
let value = catalog;
|
|
277
|
-
for (const k of keys) {
|
|
278
|
-
if (value && typeof value === "object" && k in value) {
|
|
279
|
-
value = value[k];
|
|
280
|
-
} else {
|
|
281
|
-
return;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
return value;
|
|
285
|
-
}
|
|
286
|
-
static interpolate(template, params) {
|
|
287
|
-
return template.replace(/\{(\w+)\}/g, (_, key) => {
|
|
288
|
-
const value = params[key];
|
|
289
|
-
return value !== undefined ? String(value) : `{${key}}`;
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
static normalizeLocale(locale) {
|
|
293
|
-
const normalized = locale.toLowerCase().replace(/_/g, "-");
|
|
294
|
-
const specialLocales = ["es-mx", "pt-br", "zh-cn", "zh-tw"];
|
|
295
|
-
if (specialLocales.includes(normalized)) {
|
|
296
|
-
return normalized;
|
|
297
|
-
}
|
|
298
|
-
return normalized.split("-")[0];
|
|
299
|
-
}
|
|
300
|
-
static deepMerge(target, source) {
|
|
301
|
-
const result = { ...target };
|
|
302
|
-
for (const key of Object.keys(source)) {
|
|
303
|
-
const sourceValue = source[key];
|
|
304
|
-
const targetValue = result[key];
|
|
305
|
-
if (sourceValue && typeof sourceValue === "object" && !Array.isArray(sourceValue) && targetValue && typeof targetValue === "object" && !Array.isArray(targetValue)) {
|
|
306
|
-
result[key] = I18nManager.deepMerge(targetValue, sourceValue);
|
|
307
|
-
} else {
|
|
308
|
-
result[key] = sourceValue;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
return result;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
// ../packager/packager-core/src/i18n/locales/de.ts
|
|
316
|
-
var de = {
|
|
317
|
-
toolCore: {
|
|
318
|
-
errors: {
|
|
319
|
-
internal: "Internal error: {message}",
|
|
320
|
-
fileNotFound: "File not found: {path}",
|
|
321
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
322
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
323
|
-
directoryNotFound: "Directory not found: {path}",
|
|
324
|
-
invalidPath: "{path} is not a valid path",
|
|
325
|
-
operationCanceled: "Operation was canceled",
|
|
326
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
327
|
-
},
|
|
328
|
-
progress: {
|
|
329
|
-
copying: "Copying files...",
|
|
330
|
-
building: "Building project...",
|
|
331
|
-
packaging: "Creating package...",
|
|
332
|
-
validating: "Validating...",
|
|
333
|
-
analyzing: "Analyzing...",
|
|
334
|
-
restoring: "Restoring dependencies..."
|
|
335
|
-
},
|
|
336
|
-
validation: {
|
|
337
|
-
requiredField: "{field} is required",
|
|
338
|
-
invalidValue: "Invalid value for {field}",
|
|
339
|
-
pathNotFound: "Path not found: {path}",
|
|
340
|
-
fileRequired: "File is required: {path}",
|
|
341
|
-
directoryRequired: "Directory is required: {path}"
|
|
342
|
-
},
|
|
343
|
-
warnings: {
|
|
344
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
345
|
-
},
|
|
346
|
-
info: {
|
|
347
|
-
operationComplete: "Operation completed successfully",
|
|
348
|
-
filesProcessed: {
|
|
349
|
-
zero: "No files processed",
|
|
350
|
-
one: "{count} file processed",
|
|
351
|
-
other: "{count} files processed"
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
// ../packager/packager-core/src/i18n/locales/en.ts
|
|
358
|
-
var en = {
|
|
359
|
-
toolCore: {
|
|
360
|
-
errors: {
|
|
361
|
-
internal: "Internal error: {message}",
|
|
362
|
-
fileNotFound: "File not found: {path}",
|
|
363
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
364
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
365
|
-
directoryNotFound: "Directory not found: {path}",
|
|
366
|
-
invalidPath: "{path} is not a valid path",
|
|
367
|
-
operationCanceled: "Operation was canceled",
|
|
368
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
369
|
-
},
|
|
370
|
-
progress: {
|
|
371
|
-
copying: "Copying files...",
|
|
372
|
-
building: "Building project...",
|
|
373
|
-
packaging: "Creating package...",
|
|
374
|
-
validating: "Validating...",
|
|
375
|
-
analyzing: "Analyzing...",
|
|
376
|
-
restoring: "Restoring dependencies..."
|
|
377
|
-
},
|
|
378
|
-
validation: {
|
|
379
|
-
requiredField: "{field} is required",
|
|
380
|
-
invalidValue: "Invalid value for {field}",
|
|
381
|
-
pathNotFound: "Path not found: {path}",
|
|
382
|
-
fileRequired: "File is required: {path}",
|
|
383
|
-
directoryRequired: "Directory is required: {path}"
|
|
384
|
-
},
|
|
385
|
-
warnings: {
|
|
386
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
387
|
-
},
|
|
388
|
-
info: {
|
|
389
|
-
operationComplete: "Operation completed successfully",
|
|
390
|
-
filesProcessed: {
|
|
391
|
-
zero: "No files processed",
|
|
392
|
-
one: "{count} file processed",
|
|
393
|
-
other: "{count} files processed"
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
// ../packager/packager-core/src/i18n/locales/es.ts
|
|
400
|
-
var es = {
|
|
401
|
-
toolCore: {
|
|
402
|
-
errors: {
|
|
403
|
-
internal: "Internal error: {message}",
|
|
404
|
-
fileNotFound: "File not found: {path}",
|
|
405
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
406
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
407
|
-
directoryNotFound: "Directory not found: {path}",
|
|
408
|
-
invalidPath: "{path} is not a valid path",
|
|
409
|
-
operationCanceled: "Operation was canceled",
|
|
410
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
411
|
-
},
|
|
412
|
-
progress: {
|
|
413
|
-
copying: "Copying files...",
|
|
414
|
-
building: "Building project...",
|
|
415
|
-
packaging: "Creating package...",
|
|
416
|
-
validating: "Validating...",
|
|
417
|
-
analyzing: "Analyzing...",
|
|
418
|
-
restoring: "Restoring dependencies..."
|
|
419
|
-
},
|
|
420
|
-
validation: {
|
|
421
|
-
requiredField: "{field} is required",
|
|
422
|
-
invalidValue: "Invalid value for {field}",
|
|
423
|
-
pathNotFound: "Path not found: {path}",
|
|
424
|
-
fileRequired: "File is required: {path}",
|
|
425
|
-
directoryRequired: "Directory is required: {path}"
|
|
426
|
-
},
|
|
427
|
-
warnings: {
|
|
428
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
429
|
-
},
|
|
430
|
-
info: {
|
|
431
|
-
operationComplete: "Operation completed successfully",
|
|
432
|
-
filesProcessed: {
|
|
433
|
-
zero: "No files processed",
|
|
434
|
-
one: "{count} file processed",
|
|
435
|
-
other: "{count} files processed"
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
// ../packager/packager-core/src/i18n/locales/es-MX.ts
|
|
442
|
-
var es_MX = {
|
|
443
|
-
toolCore: {
|
|
444
|
-
errors: {
|
|
445
|
-
internal: "Internal error: {message}",
|
|
446
|
-
fileNotFound: "File not found: {path}",
|
|
447
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
448
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
449
|
-
directoryNotFound: "Directory not found: {path}",
|
|
450
|
-
invalidPath: "{path} is not a valid path",
|
|
451
|
-
operationCanceled: "Operation was canceled",
|
|
452
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
453
|
-
},
|
|
454
|
-
progress: {
|
|
455
|
-
copying: "Copying files...",
|
|
456
|
-
building: "Building project...",
|
|
457
|
-
packaging: "Creating package...",
|
|
458
|
-
validating: "Validating...",
|
|
459
|
-
analyzing: "Analyzing...",
|
|
460
|
-
restoring: "Restoring dependencies..."
|
|
461
|
-
},
|
|
462
|
-
validation: {
|
|
463
|
-
requiredField: "{field} is required",
|
|
464
|
-
invalidValue: "Invalid value for {field}",
|
|
465
|
-
pathNotFound: "Path not found: {path}",
|
|
466
|
-
fileRequired: "File is required: {path}",
|
|
467
|
-
directoryRequired: "Directory is required: {path}"
|
|
468
|
-
},
|
|
469
|
-
warnings: {
|
|
470
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
471
|
-
},
|
|
472
|
-
info: {
|
|
473
|
-
operationComplete: "Operation completed successfully",
|
|
474
|
-
filesProcessed: {
|
|
475
|
-
zero: "No files processed",
|
|
476
|
-
one: "{count} file processed",
|
|
477
|
-
other: "{count} files processed"
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
// ../packager/packager-core/src/i18n/locales/fr.ts
|
|
484
|
-
var fr = {
|
|
485
|
-
toolCore: {
|
|
486
|
-
errors: {
|
|
487
|
-
internal: "Internal error: {message}",
|
|
488
|
-
fileNotFound: "File not found: {path}",
|
|
489
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
490
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
491
|
-
directoryNotFound: "Directory not found: {path}",
|
|
492
|
-
invalidPath: "{path} is not a valid path",
|
|
493
|
-
operationCanceled: "Operation was canceled",
|
|
494
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
495
|
-
},
|
|
496
|
-
progress: {
|
|
497
|
-
copying: "Copying files...",
|
|
498
|
-
building: "Building project...",
|
|
499
|
-
packaging: "Creating package...",
|
|
500
|
-
validating: "Validating...",
|
|
501
|
-
analyzing: "Analyzing...",
|
|
502
|
-
restoring: "Restoring dependencies..."
|
|
503
|
-
},
|
|
504
|
-
validation: {
|
|
505
|
-
requiredField: "{field} is required",
|
|
506
|
-
invalidValue: "Invalid value for {field}",
|
|
507
|
-
pathNotFound: "Path not found: {path}",
|
|
508
|
-
fileRequired: "File is required: {path}",
|
|
509
|
-
directoryRequired: "Directory is required: {path}"
|
|
510
|
-
},
|
|
511
|
-
warnings: {
|
|
512
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
513
|
-
},
|
|
514
|
-
info: {
|
|
515
|
-
operationComplete: "Operation completed successfully",
|
|
516
|
-
filesProcessed: {
|
|
517
|
-
zero: "No files processed",
|
|
518
|
-
one: "{count} file processed",
|
|
519
|
-
other: "{count} files processed"
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
// ../packager/packager-core/src/i18n/locales/ja.ts
|
|
526
|
-
var ja = {
|
|
527
|
-
toolCore: {
|
|
528
|
-
errors: {
|
|
529
|
-
internal: "Internal error: {message}",
|
|
530
|
-
fileNotFound: "File not found: {path}",
|
|
531
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
532
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
533
|
-
directoryNotFound: "Directory not found: {path}",
|
|
534
|
-
invalidPath: "{path} is not a valid path",
|
|
535
|
-
operationCanceled: "Operation was canceled",
|
|
536
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
537
|
-
},
|
|
538
|
-
progress: {
|
|
539
|
-
copying: "Copying files...",
|
|
540
|
-
building: "Building project...",
|
|
541
|
-
packaging: "Creating package...",
|
|
542
|
-
validating: "Validating...",
|
|
543
|
-
analyzing: "Analyzing...",
|
|
544
|
-
restoring: "Restoring dependencies..."
|
|
545
|
-
},
|
|
546
|
-
validation: {
|
|
547
|
-
requiredField: "{field} is required",
|
|
548
|
-
invalidValue: "Invalid value for {field}",
|
|
549
|
-
pathNotFound: "Path not found: {path}",
|
|
550
|
-
fileRequired: "File is required: {path}",
|
|
551
|
-
directoryRequired: "Directory is required: {path}"
|
|
552
|
-
},
|
|
553
|
-
warnings: {
|
|
554
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
555
|
-
},
|
|
556
|
-
info: {
|
|
557
|
-
operationComplete: "Operation completed successfully",
|
|
558
|
-
filesProcessed: {
|
|
559
|
-
zero: "No files processed",
|
|
560
|
-
one: "{count} file processed",
|
|
561
|
-
other: "{count} files processed"
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
// ../packager/packager-core/src/i18n/locales/ko.ts
|
|
568
|
-
var ko = {
|
|
569
|
-
toolCore: {
|
|
570
|
-
errors: {
|
|
571
|
-
internal: "Internal error: {message}",
|
|
572
|
-
fileNotFound: "File not found: {path}",
|
|
573
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
574
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
575
|
-
directoryNotFound: "Directory not found: {path}",
|
|
576
|
-
invalidPath: "{path} is not a valid path",
|
|
577
|
-
operationCanceled: "Operation was canceled",
|
|
578
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
579
|
-
},
|
|
580
|
-
progress: {
|
|
581
|
-
copying: "Copying files...",
|
|
582
|
-
building: "Building project...",
|
|
583
|
-
packaging: "Creating package...",
|
|
584
|
-
validating: "Validating...",
|
|
585
|
-
analyzing: "Analyzing...",
|
|
586
|
-
restoring: "Restoring dependencies..."
|
|
587
|
-
},
|
|
588
|
-
validation: {
|
|
589
|
-
requiredField: "{field} is required",
|
|
590
|
-
invalidValue: "Invalid value for {field}",
|
|
591
|
-
pathNotFound: "Path not found: {path}",
|
|
592
|
-
fileRequired: "File is required: {path}",
|
|
593
|
-
directoryRequired: "Directory is required: {path}"
|
|
594
|
-
},
|
|
595
|
-
warnings: {
|
|
596
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
597
|
-
},
|
|
598
|
-
info: {
|
|
599
|
-
operationComplete: "Operation completed successfully",
|
|
600
|
-
filesProcessed: {
|
|
601
|
-
zero: "No files processed",
|
|
602
|
-
one: "{count} file processed",
|
|
603
|
-
other: "{count} files processed"
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
// ../packager/packager-core/src/i18n/locales/pt.ts
|
|
610
|
-
var pt = {
|
|
611
|
-
toolCore: {
|
|
612
|
-
errors: {
|
|
613
|
-
internal: "Internal error: {message}",
|
|
614
|
-
fileNotFound: "File not found: {path}",
|
|
615
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
616
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
617
|
-
directoryNotFound: "Directory not found: {path}",
|
|
618
|
-
invalidPath: "{path} is not a valid path",
|
|
619
|
-
operationCanceled: "Operation was canceled",
|
|
620
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
621
|
-
},
|
|
622
|
-
progress: {
|
|
623
|
-
copying: "Copying files...",
|
|
624
|
-
building: "Building project...",
|
|
625
|
-
packaging: "Creating package...",
|
|
626
|
-
validating: "Validating...",
|
|
627
|
-
analyzing: "Analyzing...",
|
|
628
|
-
restoring: "Restoring dependencies..."
|
|
629
|
-
},
|
|
630
|
-
validation: {
|
|
631
|
-
requiredField: "{field} is required",
|
|
632
|
-
invalidValue: "Invalid value for {field}",
|
|
633
|
-
pathNotFound: "Path not found: {path}",
|
|
634
|
-
fileRequired: "File is required: {path}",
|
|
635
|
-
directoryRequired: "Directory is required: {path}"
|
|
636
|
-
},
|
|
637
|
-
warnings: {
|
|
638
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
639
|
-
},
|
|
640
|
-
info: {
|
|
641
|
-
operationComplete: "Operation completed successfully",
|
|
642
|
-
filesProcessed: {
|
|
643
|
-
zero: "No files processed",
|
|
644
|
-
one: "{count} file processed",
|
|
645
|
-
other: "{count} files processed"
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
// ../packager/packager-core/src/i18n/locales/pt-BR.ts
|
|
652
|
-
var pt_BR = {
|
|
653
|
-
toolCore: {
|
|
654
|
-
errors: {
|
|
655
|
-
internal: "Internal error: {message}",
|
|
656
|
-
fileNotFound: "File not found: {path}",
|
|
657
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
658
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
659
|
-
directoryNotFound: "Directory not found: {path}",
|
|
660
|
-
invalidPath: "{path} is not a valid path",
|
|
661
|
-
operationCanceled: "Operation was canceled",
|
|
662
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
663
|
-
},
|
|
664
|
-
progress: {
|
|
665
|
-
copying: "Copying files...",
|
|
666
|
-
building: "Building project...",
|
|
667
|
-
packaging: "Creating package...",
|
|
668
|
-
validating: "Validating...",
|
|
669
|
-
analyzing: "Analyzing...",
|
|
670
|
-
restoring: "Restoring dependencies..."
|
|
671
|
-
},
|
|
672
|
-
validation: {
|
|
673
|
-
requiredField: "{field} is required",
|
|
674
|
-
invalidValue: "Invalid value for {field}",
|
|
675
|
-
pathNotFound: "Path not found: {path}",
|
|
676
|
-
fileRequired: "File is required: {path}",
|
|
677
|
-
directoryRequired: "Directory is required: {path}"
|
|
678
|
-
},
|
|
679
|
-
warnings: {
|
|
680
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
681
|
-
},
|
|
682
|
-
info: {
|
|
683
|
-
operationComplete: "Operation completed successfully",
|
|
684
|
-
filesProcessed: {
|
|
685
|
-
zero: "No files processed",
|
|
686
|
-
one: "{count} file processed",
|
|
687
|
-
other: "{count} files processed"
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
};
|
|
692
|
-
|
|
693
|
-
// ../packager/packager-core/src/i18n/locales/ro.ts
|
|
694
|
-
var ro = {
|
|
695
|
-
toolCore: {
|
|
696
|
-
errors: {
|
|
697
|
-
internal: "Internal error: {message}",
|
|
698
|
-
fileNotFound: "File not found: {path}",
|
|
699
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
700
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
701
|
-
directoryNotFound: "Directory not found: {path}",
|
|
702
|
-
invalidPath: "{path} is not a valid path",
|
|
703
|
-
operationCanceled: "Operation was canceled",
|
|
704
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
705
|
-
},
|
|
706
|
-
progress: {
|
|
707
|
-
copying: "Copying files...",
|
|
708
|
-
building: "Building project...",
|
|
709
|
-
packaging: "Creating package...",
|
|
710
|
-
validating: "Validating...",
|
|
711
|
-
analyzing: "Analyzing...",
|
|
712
|
-
restoring: "Restoring dependencies..."
|
|
713
|
-
},
|
|
714
|
-
validation: {
|
|
715
|
-
requiredField: "{field} is required",
|
|
716
|
-
invalidValue: "Invalid value for {field}",
|
|
717
|
-
pathNotFound: "Path not found: {path}",
|
|
718
|
-
fileRequired: "File is required: {path}",
|
|
719
|
-
directoryRequired: "Directory is required: {path}"
|
|
720
|
-
},
|
|
721
|
-
warnings: {
|
|
722
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
723
|
-
},
|
|
724
|
-
info: {
|
|
725
|
-
operationComplete: "Operation completed successfully",
|
|
726
|
-
filesProcessed: {
|
|
727
|
-
zero: "No files processed",
|
|
728
|
-
one: "{count} file processed",
|
|
729
|
-
other: "{count} files processed"
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
|
-
|
|
735
|
-
// ../packager/packager-core/src/i18n/locales/ru.ts
|
|
736
|
-
var ru = {
|
|
737
|
-
toolCore: {
|
|
738
|
-
errors: {
|
|
739
|
-
internal: "Internal error: {message}",
|
|
740
|
-
fileNotFound: "File not found: {path}",
|
|
741
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
742
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
743
|
-
directoryNotFound: "Directory not found: {path}",
|
|
744
|
-
invalidPath: "{path} is not a valid path",
|
|
745
|
-
operationCanceled: "Operation was canceled",
|
|
746
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
747
|
-
},
|
|
748
|
-
progress: {
|
|
749
|
-
copying: "Copying files...",
|
|
750
|
-
building: "Building project...",
|
|
751
|
-
packaging: "Creating package...",
|
|
752
|
-
validating: "Validating...",
|
|
753
|
-
analyzing: "Analyzing...",
|
|
754
|
-
restoring: "Restoring dependencies..."
|
|
755
|
-
},
|
|
756
|
-
validation: {
|
|
757
|
-
requiredField: "{field} is required",
|
|
758
|
-
invalidValue: "Invalid value for {field}",
|
|
759
|
-
pathNotFound: "Path not found: {path}",
|
|
760
|
-
fileRequired: "File is required: {path}",
|
|
761
|
-
directoryRequired: "Directory is required: {path}"
|
|
762
|
-
},
|
|
763
|
-
warnings: {
|
|
764
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
765
|
-
},
|
|
766
|
-
info: {
|
|
767
|
-
operationComplete: "Operation completed successfully",
|
|
768
|
-
filesProcessed: {
|
|
769
|
-
zero: "No files processed",
|
|
770
|
-
one: "{count} file processed",
|
|
771
|
-
other: "{count} files processed"
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
|
|
777
|
-
// ../packager/packager-core/src/i18n/locales/tr.ts
|
|
778
|
-
var tr = {
|
|
779
|
-
toolCore: {
|
|
780
|
-
errors: {
|
|
781
|
-
internal: "Internal error: {message}",
|
|
782
|
-
fileNotFound: "File not found: {path}",
|
|
783
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
784
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
785
|
-
directoryNotFound: "Directory not found: {path}",
|
|
786
|
-
invalidPath: "{path} is not a valid path",
|
|
787
|
-
operationCanceled: "Operation was canceled",
|
|
788
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
789
|
-
},
|
|
790
|
-
progress: {
|
|
791
|
-
copying: "Copying files...",
|
|
792
|
-
building: "Building project...",
|
|
793
|
-
packaging: "Creating package...",
|
|
794
|
-
validating: "Validating...",
|
|
795
|
-
analyzing: "Analyzing...",
|
|
796
|
-
restoring: "Restoring dependencies..."
|
|
797
|
-
},
|
|
798
|
-
validation: {
|
|
799
|
-
requiredField: "{field} is required",
|
|
800
|
-
invalidValue: "Invalid value for {field}",
|
|
801
|
-
pathNotFound: "Path not found: {path}",
|
|
802
|
-
fileRequired: "File is required: {path}",
|
|
803
|
-
directoryRequired: "Directory is required: {path}"
|
|
804
|
-
},
|
|
805
|
-
warnings: {
|
|
806
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
807
|
-
},
|
|
808
|
-
info: {
|
|
809
|
-
operationComplete: "Operation completed successfully",
|
|
810
|
-
filesProcessed: {
|
|
811
|
-
zero: "No files processed",
|
|
812
|
-
one: "{count} file processed",
|
|
813
|
-
other: "{count} files processed"
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
// ../packager/packager-core/src/i18n/locales/zh-CN.ts
|
|
820
|
-
var zh_CN = {
|
|
821
|
-
toolCore: {
|
|
822
|
-
errors: {
|
|
823
|
-
internal: "Internal error: {message}",
|
|
824
|
-
fileNotFound: "File not found: {path}",
|
|
825
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
826
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
827
|
-
directoryNotFound: "Directory not found: {path}",
|
|
828
|
-
invalidPath: "{path} is not a valid path",
|
|
829
|
-
operationCanceled: "Operation was canceled",
|
|
830
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
831
|
-
},
|
|
832
|
-
progress: {
|
|
833
|
-
copying: "Copying files...",
|
|
834
|
-
building: "Building project...",
|
|
835
|
-
packaging: "Creating package...",
|
|
836
|
-
validating: "Validating...",
|
|
837
|
-
analyzing: "Analyzing...",
|
|
838
|
-
restoring: "Restoring dependencies..."
|
|
839
|
-
},
|
|
840
|
-
validation: {
|
|
841
|
-
requiredField: "{field} is required",
|
|
842
|
-
invalidValue: "Invalid value for {field}",
|
|
843
|
-
pathNotFound: "Path not found: {path}",
|
|
844
|
-
fileRequired: "File is required: {path}",
|
|
845
|
-
directoryRequired: "Directory is required: {path}"
|
|
846
|
-
},
|
|
847
|
-
warnings: {
|
|
848
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
849
|
-
},
|
|
850
|
-
info: {
|
|
851
|
-
operationComplete: "Operation completed successfully",
|
|
852
|
-
filesProcessed: {
|
|
853
|
-
zero: "No files processed",
|
|
854
|
-
one: "{count} file processed",
|
|
855
|
-
other: "{count} files processed"
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
};
|
|
860
|
-
|
|
861
|
-
// ../packager/packager-core/src/i18n/locales/zh-TW.ts
|
|
862
|
-
var zh_TW = {
|
|
863
|
-
toolCore: {
|
|
864
|
-
errors: {
|
|
865
|
-
internal: "Internal error: {message}",
|
|
866
|
-
fileNotFound: "File not found: {path}",
|
|
867
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
868
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
869
|
-
directoryNotFound: "Directory not found: {path}",
|
|
870
|
-
invalidPath: "{path} is not a valid path",
|
|
871
|
-
operationCanceled: "Operation was canceled",
|
|
872
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
873
|
-
},
|
|
874
|
-
progress: {
|
|
875
|
-
copying: "Copying files...",
|
|
876
|
-
building: "Building project...",
|
|
877
|
-
packaging: "Creating package...",
|
|
878
|
-
validating: "Validating...",
|
|
879
|
-
analyzing: "Analyzing...",
|
|
880
|
-
restoring: "Restoring dependencies..."
|
|
881
|
-
},
|
|
882
|
-
validation: {
|
|
883
|
-
requiredField: "{field} is required",
|
|
884
|
-
invalidValue: "Invalid value for {field}",
|
|
885
|
-
pathNotFound: "Path not found: {path}",
|
|
886
|
-
fileRequired: "File is required: {path}",
|
|
887
|
-
directoryRequired: "Directory is required: {path}"
|
|
888
|
-
},
|
|
889
|
-
warnings: {
|
|
890
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
891
|
-
},
|
|
892
|
-
info: {
|
|
893
|
-
operationComplete: "Operation completed successfully",
|
|
894
|
-
filesProcessed: {
|
|
895
|
-
zero: "No files processed",
|
|
896
|
-
one: "{count} file processed",
|
|
897
|
-
other: "{count} files processed"
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
};
|
|
902
|
-
|
|
903
|
-
// ../packager/packager-core/src/i18n/locales/zu.ts
|
|
904
|
-
var zu = {
|
|
905
|
-
toolCore: {
|
|
906
|
-
errors: {
|
|
907
|
-
internal: "Internal error: {message}",
|
|
908
|
-
fileNotFound: "File not found: {path}",
|
|
909
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
910
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
911
|
-
directoryNotFound: "Directory not found: {path}",
|
|
912
|
-
invalidPath: "{path} is not a valid path",
|
|
913
|
-
operationCanceled: "Operation was canceled",
|
|
914
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
915
|
-
},
|
|
916
|
-
progress: {
|
|
917
|
-
copying: "Copying files...",
|
|
918
|
-
building: "Building project...",
|
|
919
|
-
packaging: "Creating package...",
|
|
920
|
-
validating: "Validating...",
|
|
921
|
-
analyzing: "Analyzing...",
|
|
922
|
-
restoring: "Restoring dependencies..."
|
|
923
|
-
},
|
|
924
|
-
validation: {
|
|
925
|
-
requiredField: "{field} is required",
|
|
926
|
-
invalidValue: "Invalid value for {field}",
|
|
927
|
-
pathNotFound: "Path not found: {path}",
|
|
928
|
-
fileRequired: "File is required: {path}",
|
|
929
|
-
directoryRequired: "Directory is required: {path}"
|
|
930
|
-
},
|
|
931
|
-
warnings: {
|
|
932
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
933
|
-
},
|
|
934
|
-
info: {
|
|
935
|
-
operationComplete: "Operation completed successfully",
|
|
936
|
-
filesProcessed: {
|
|
937
|
-
zero: "No files processed",
|
|
938
|
-
one: "{count} file processed",
|
|
939
|
-
other: "{count} files processed"
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
};
|
|
944
|
-
|
|
945
|
-
// ../packager/packager-core/src/i18n/translation-service.ts
|
|
946
|
-
class TranslationService {
|
|
947
|
-
static instance;
|
|
948
|
-
currentLocale = "en";
|
|
949
|
-
constructor() {}
|
|
950
|
-
static getInstance() {
|
|
951
|
-
if (!TranslationService.instance) {
|
|
952
|
-
TranslationService.instance = new TranslationService;
|
|
953
|
-
}
|
|
954
|
-
return TranslationService.instance;
|
|
955
|
-
}
|
|
956
|
-
setLocale(locale) {
|
|
957
|
-
this.currentLocale = I18nManager.setLocale(locale);
|
|
958
|
-
}
|
|
959
|
-
getLocale() {
|
|
960
|
-
return this.currentLocale;
|
|
961
|
-
}
|
|
962
|
-
t(key, params) {
|
|
963
|
-
return I18nManager.t(key, params, this.currentLocale);
|
|
964
|
-
}
|
|
965
|
-
tLocale(key, locale, params) {
|
|
966
|
-
return I18nManager.t(key, params, locale);
|
|
967
|
-
}
|
|
968
|
-
has(key) {
|
|
969
|
-
return I18nManager.has(key, this.currentLocale);
|
|
970
|
-
}
|
|
971
|
-
getAvailableLocales() {
|
|
972
|
-
return I18nManager.getAvailableLocales();
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
var translate = TranslationService.getInstance();
|
|
976
|
-
|
|
977
|
-
// ../packager/packager-core/src/i18n/index.ts
|
|
978
|
-
I18nManager.registerTranslations("en", en);
|
|
979
|
-
I18nManager.registerTranslations("de", de);
|
|
980
|
-
I18nManager.registerTranslations("es", es);
|
|
981
|
-
I18nManager.registerTranslations("es-mx", es_MX);
|
|
982
|
-
I18nManager.registerTranslations("fr", fr);
|
|
983
|
-
I18nManager.registerTranslations("ja", ja);
|
|
984
|
-
I18nManager.registerTranslations("ko", ko);
|
|
985
|
-
I18nManager.registerTranslations("pt", pt);
|
|
986
|
-
I18nManager.registerTranslations("pt-br", pt_BR);
|
|
987
|
-
I18nManager.registerTranslations("ro", ro);
|
|
988
|
-
I18nManager.registerTranslations("ru", ru);
|
|
989
|
-
I18nManager.registerTranslations("tr", tr);
|
|
990
|
-
I18nManager.registerTranslations("zh-cn", zh_CN);
|
|
991
|
-
I18nManager.registerTranslations("zh-tw", zh_TW);
|
|
992
|
-
I18nManager.registerTranslations("zu", zu);
|
|
993
|
-
I18nManager.setLocale("en");
|
|
994
|
-
export { ensureProjectId, toolsFactoryRepository };
|
|
995
|
-
|
|
996
|
-
//# debugId=937C9537994ACAB564756E2164756E21
|