Skip to content

Commit a15b08d

Browse files
committed
fix(cli): fix loading indicator jumps
1 parent 61c7bf0 commit a15b08d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/chilled-laws-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"replexica": patch
3+
---
4+
5+
fix loading indicator jumps

packages/cli/src/i18n.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export default new Command()
3838
} else if (!bucketEntries.length) {
3939
spinner.warn('No buckets found in configuration. Please add at least one bucket.');
4040
} else {
41-
spinner = Ora().start(`Translating ${bucketEntries.length} buckets to ${targetLocales.length} locales...`);
4241
for (const [bucketPath, bucketType] of bucketEntries) {
4342
let spinnerPrefix = `[${bucketType}]`;
4443
if (bucketPath) { spinnerPrefix += `(${bucketPath})`; }
@@ -62,7 +61,7 @@ export default new Command()
6261
}
6362
bucketSpinner.succeed(`Bucket translated.`);
6463
}
65-
spinner.succeed('Translations completed successfully!');
64+
spinner = Ora().succeed('Translations completed successfully!');
6665
}
6766
} catch (error: any) {
6867
spinner.fail(error.message);

0 commit comments

Comments
 (0)