gt 2.14.25 → 2.14.27
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
+
## 2.14.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1285](https://github.com/generaltranslation/gt/pull/1285) [`0404f04`](https://github.com/generaltranslation/gt/commit/0404f04be055275048ab3db03013cecb0d3d9153) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - fix: silent error on download file failure
|
|
8
|
+
|
|
9
|
+
- [#1277](https://github.com/generaltranslation/gt/pull/1277) [`5eae67c`](https://github.com/generaltranslation/gt/commit/5eae67c47b14edf65f7a8911559aa154db19f437) Thanks [@moss-bryophyta](https://github.com/moss-bryophyta)! - Improve transformationFormat error message and normalize casing so lowercase values like "po" work in gt.config.json.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`20276d0`](https://github.com/generaltranslation/gt/commit/20276d03cc1494e79d93d9dc131eee2815a4fae6)]:
|
|
12
|
+
- generaltranslation@8.2.10
|
|
13
|
+
- @generaltranslation/python-extractor@0.2.15
|
|
14
|
+
|
|
15
|
+
## 2.14.26
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#1290](https://github.com/generaltranslation/gt/pull/1290) [`7172355`](https://github.com/generaltranslation/gt/commit/71723554db498946450606442c2a42c23caf8abb) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - chore: fix release
|
|
20
|
+
|
|
3
21
|
## 2.14.25
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isSupportedFileFormatTransform } from 'generaltranslation/internal';
|
|
2
2
|
/**
|
|
3
3
|
* Maps CLI config file keys to API file format enum values.
|
|
4
4
|
*/
|
|
@@ -72,15 +72,14 @@ export function normalizeFilesOptions(files) {
|
|
|
72
72
|
export function resolveTransformationFormat(fileType, transformationFormat) {
|
|
73
73
|
if (!transformationFormat)
|
|
74
74
|
return undefined;
|
|
75
|
+
// Normalize to uppercase to match the FileFormat enum (e.g. "po" -> "PO")
|
|
76
|
+
const normalized = transformationFormat.toUpperCase();
|
|
75
77
|
const fileFormat = CONFIG_FILE_TYPE_TO_FILE_FORMAT[fileType];
|
|
76
|
-
|
|
77
|
-
{
|
|
78
|
-
fileFormat
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
]);
|
|
83
|
-
return transformationFormat;
|
|
78
|
+
if (!isSupportedFileFormatTransform(fileFormat, normalized)) {
|
|
79
|
+
throw new Error(`Unsupported file format transform: ${fileFormat} -> ${normalized} in files.${fileType}. ` +
|
|
80
|
+
`"${normalized}" is not a valid transformationFormat for ${fileFormat} source files.`);
|
|
81
|
+
}
|
|
82
|
+
return normalized;
|
|
84
83
|
}
|
|
85
84
|
/**
|
|
86
85
|
* Returns the API upload/enqueue property for a file type when one is configured.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "2.14.
|
|
1
|
+
export declare const PACKAGE_VERSION = "2.14.27";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
|
-
export const PACKAGE_VERSION = '2.14.
|
|
2
|
+
export const PACKAGE_VERSION = '2.14.27';
|
|
@@ -45,6 +45,14 @@ export class DownloadTranslationsStep extends WorkflowStep {
|
|
|
45
45
|
const translatedFiles = responseData.translatedFiles || [];
|
|
46
46
|
// Filter for ready translations
|
|
47
47
|
const readyTranslations = translatedFiles.filter((file) => file.completedAt !== null);
|
|
48
|
+
if (readyTranslations.length < currentQueryData.length) {
|
|
49
|
+
const readyKeys = new Set(readyTranslations.map((t) => `${t.branchId}:${t.fileId}:${t.versionId}:${t.locale}`));
|
|
50
|
+
const missing = currentQueryData.filter((item) => !readyKeys.has(`${item.branchId}:${item.fileId}:${item.versionId}:${item.locale}`));
|
|
51
|
+
logger.warn(`Failed to download ${missing.length} file(s):\n${missing.map((f) => `- ${f.fileName} (${f.locale})`).join('\n')}`);
|
|
52
|
+
for (const f of missing) {
|
|
53
|
+
recordWarning('failed_download', f.fileName, `Failed to download for locale ${f.locale}`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
48
56
|
// Prepare batch download data
|
|
49
57
|
const batchFiles = readyTranslations
|
|
50
58
|
.map((translation) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.27",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"bin": "dist/main.js",
|
|
6
6
|
"files": [
|
|
@@ -110,9 +110,9 @@
|
|
|
110
110
|
"unified": "^11.0.5",
|
|
111
111
|
"unist-util-visit": "^5.0.0",
|
|
112
112
|
"yaml": "^2.8.0",
|
|
113
|
-
"@generaltranslation/python-extractor": "0.2.
|
|
114
|
-
"
|
|
115
|
-
"
|
|
113
|
+
"@generaltranslation/python-extractor": "0.2.15",
|
|
114
|
+
"generaltranslation": "8.2.10",
|
|
115
|
+
"gt-remark": "1.0.7"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@babel/types": "^7.28.4",
|