gtx-cli 2.5.4 → 2.5.5
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 +9 -0
- package/dist/api/saveLocalEdits.js +5 -1
- package/dist/cli/base.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
+
## 2.5.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#815](https://github.com/generaltranslation/gt/pull/815) [`e7d25b0`](https://github.com/generaltranslation/gt/commit/e7d25b06a3e1d7ca404d64257570b88e7b0d1915) Thanks [@brian-lou](https://github.com/brian-lou)! - Batch enqueue jobs
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`e7d25b0`](https://github.com/generaltranslation/gt/commit/e7d25b06a3e1d7ca404d64257570b88e7b0d1915)]:
|
|
10
|
+
- generaltranslation@8.0.2
|
|
11
|
+
|
|
3
12
|
## 2.5.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -2,7 +2,8 @@ import { aggregateFiles } from '../formats/files/translate.js';
|
|
|
2
2
|
import { collectAndSendUserEditDiffs } from './collectUserEditDiffs.js';
|
|
3
3
|
import { gt } from '../utils/gt.js';
|
|
4
4
|
import { BranchStep } from '../workflow/BranchStep.js';
|
|
5
|
-
import { logErrorAndExit } from '../console/logging.js';
|
|
5
|
+
import { createSpinner, logErrorAndExit } from '../console/logging.js';
|
|
6
|
+
import chalk from 'chalk';
|
|
6
7
|
/**
|
|
7
8
|
* Uploads current source files to obtain file references, then collects and sends
|
|
8
9
|
* diffs for all locales based on last downloaded versions. Does not enqueue translations.
|
|
@@ -29,5 +30,8 @@ export async function saveLocalEdits(settings) {
|
|
|
29
30
|
fileId: file.fileId,
|
|
30
31
|
versionId: file.versionId,
|
|
31
32
|
}));
|
|
33
|
+
const spinner = createSpinner('dots');
|
|
34
|
+
spinner.start('Saving local edits...');
|
|
32
35
|
await collectAndSendUserEditDiffs(uploads, settings);
|
|
36
|
+
spinner.stop(chalk.green('Local edits saved successfully'));
|
|
33
37
|
}
|
package/dist/cli/base.js
CHANGED
|
@@ -72,6 +72,7 @@ export class BaseCLI {
|
|
|
72
72
|
.command('save-local')
|
|
73
73
|
.description('Save local edits for all configured files by sending diffs (no translation enqueued)')
|
|
74
74
|
.action(async () => {
|
|
75
|
+
displayHeader('Saving local edits...');
|
|
75
76
|
const config = findFilepath(['gt.config.json']);
|
|
76
77
|
const settings = await generateSettings({ config });
|
|
77
78
|
await saveLocalEdits(settings);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtx-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"bin": "dist/main.js",
|
|
6
6
|
"files": [
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"unified": "^11.0.5",
|
|
94
94
|
"unist-util-visit": "^5.0.0",
|
|
95
95
|
"yaml": "^2.8.0",
|
|
96
|
-
"generaltranslation": "8.0.
|
|
96
|
+
"generaltranslation": "8.0.2"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@babel/types": "^7.28.4",
|