From 850dfa33e6aea12d472666707de8f019a5b9d4cb Mon Sep 17 00:00:00 2001 From: jaw <2135326728@qq.com> Date: Wed, 15 Mar 2023 13:06:03 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 4 ++-- src/utils/locales.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index c06eb8e..94e5e01 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,7 @@ export interface Setting { } const runTransform = async () => { - const { scanPath, isGitMv, lang = 'zh', mode = 'fast' } = await prompts([ + const { scanPath, isGitMv, lang = 'zh', mode = 'precise' } = await prompts([ { type: 'select', name: 'lang', @@ -38,8 +38,8 @@ const runTransform = async () => { message: (_, values) => locales[values.lang].mode, initial: 0, choices: (_, values) => [ - { title: locales[values.lang].fast, value: 'fast' }, { title: locales[values.lang].precise, value: 'precise' }, + { title: locales[values.lang].fast, value: 'fast' }, ], }, { diff --git a/src/utils/locales.ts b/src/utils/locales.ts index 1c45f61..eac88fa 100644 --- a/src/utils/locales.ts +++ b/src/utils/locales.ts @@ -9,8 +9,8 @@ export default { babelFail: 'Babel解析文件失败', isGitMv: '是否使用Git mv方式进行批量修改后缀名(Git托管的项目推荐这种方式)', mode: '识别模式', - fast: '更快速', - precise: '更准确(use Babel)', + fast: '更快速(测试阶段)', + precise: '更准确(推荐)', }, en: { scanPath: 'Please specify the folder to be scanned', @@ -22,7 +22,7 @@ export default { babelFail: 'Babel failed to parse the file', isGitMv: 'Whether to use Git mv method to batch modify suffix names (Git managed projects recommend this method)', mode: 'recognition pattern', - fast: 'fast', - precise: 'precise(use Babel)', + fast: 'fast(beta...)', + precise: 'precise(Recommend)', }, }