Skip to content

Commit 072e23e

Browse files
committed
fix(cli): hide process summary label when there's zero elements to show
1 parent bdec383 commit 072e23e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.changeset/nice-lions-walk.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@replexica/cli": minor
3+
"replexica": minor
4+
---
5+
6+
hide process summary label when there's zero elements to show

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "replexica",
3-
"version": "0.51.2",
3+
"version": "0.52.0",
44
"description": "Replexica",
55
"private": false,
66
"type": "module",

packages/cli/src/cli/i18n.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default new Command()
105105

106106
for (const targetLocale of targetLocales) {
107107
try {
108-
bucketOra.start(`[${i18nConfig!.locale.source} -> ${targetLocale}] AI localization in progress...`);
108+
bucketOra.start(`[${i18nConfig!.locale.source} -> ${targetLocale}] (0%) AI localization in progress...`);
109109

110110
const targetData = await bucketLoader.pull(targetLocale);
111111
const processableData = calculateDataDelta({ sourceData, updatedSourceData, targetData });
@@ -171,6 +171,8 @@ function handleWarning(step: string, error: Error, strictMode: boolean| undefine
171171
}
172172

173173
function displaySummary(results: any[]) {
174+
if (results.length === 0) { return; }
175+
174176
console.log("\nProcess Summary:");
175177
results.forEach((result) => {
176178
console.log(`${result.step}: ${result.status}`);

0 commit comments

Comments
 (0)