Skip to content

Commit

Permalink
chore: 调整顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
jaw52 committed Mar 15, 2023
1 parent 43e1d8d commit 850dfa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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' },
],
},
{
Expand Down
8 changes: 4 additions & 4 deletions src/utils/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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)',
},
}

0 comments on commit 850dfa3

Please sign in to comment.