From 1d4662ebc1bfa3cb6fd67a2521b1d116b3fa8b40 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Mon, 3 Apr 2023 14:59:46 +0800 Subject: [PATCH] chore(cli): update translate command description (#3662) --- packages/cli/src/commands/translate/create.ts | 3 ++- packages/cli/src/commands/translate/sync.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/translate/create.ts b/packages/cli/src/commands/translate/create.ts index d02eedcbf..ccef71879 100644 --- a/packages/cli/src/commands/translate/create.ts +++ b/packages/cli/src/commands/translate/create.ts @@ -10,7 +10,8 @@ import { createFullTranslation } from './utils.js'; const create: CommandModule<{ path?: string }, { path?: string; 'language-tag': string }> = { command: ['create ', 'c'], - describe: 'Create a new language translation', + describe: + 'Create a new language translation using ChatGPT. Note the environment variable `OPENAI_API_KEY` is required to work.', builder: (yargs) => yargs.positional('language-tag', { describe: 'The language tag to create, e.g. `af-ZA`.', diff --git a/packages/cli/src/commands/translate/sync.ts b/packages/cli/src/commands/translate/sync.ts index 928fe5300..2d7cce681 100644 --- a/packages/cli/src/commands/translate/sync.ts +++ b/packages/cli/src/commands/translate/sync.ts @@ -10,7 +10,8 @@ import { type CreateFullTranslation, baseLanguage, createFullTranslation } from const sync: CommandModule<{ path?: string }, { path?: string }> = { command: ['sync'], - describe: 'Translate all untranslated phrases.', + describe: + 'Translate all untranslated phrases using ChatGPT. Note the environment variable `OPENAI_API_KEY` is required to work.', handler: async ({ path: inputPath }) => { const queue = new PQueue({ concurrency: 5 }); const instancePath = await inquireInstancePath(inputPath);