Skip to content

Commit e9982b5

Browse files
committed
feat: show target column if verbose
1 parent 325c334 commit e9982b5

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/translate/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ program
6666
...(options.docsPath ? { docsPath: options.docsPath } : {}),
6767
...(options.max ? { max: options.max } : {}),
6868
...(options.concurrency ? { concurrency: options.concurrency } : {}),
69+
verbose: options.verbose,
6970
listOnly: options.listOnly,
7071
targetLanguage: options.targetLanguage,
7172
});

packages/translate/src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export async function main({
2323
max = Number.POSITIVE_INFINITY,
2424
targetLanguage,
2525
concurrency = 10,
26+
verbose,
2627
}: MainConfig): Promise<void> {
2728
// Filter languages based on targetLanguage if specified
2829
const filteredLangs = targetLanguage
@@ -159,7 +160,7 @@ export async function main({
159160

160161
tableData.push({
161162
Source: sourcePath,
162-
Target: targetPath,
163+
...(verbose ? { Target: targetPath } : {}),
163164
'Should update?': shouldUpdate ? '✅ Yes' : '❌ No',
164165
Chunks: chunks,
165166
Reason: reason,

packages/translate/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export interface MainConfig {
2828
listOnly?: boolean;
2929
targetLanguage?: string;
3030
concurrency?: number;
31+
verbose?: boolean;
3132
}
3233

3334
export interface TranslationResult {

0 commit comments

Comments
 (0)