From d8a3ee2bfdcefbf8d05e876638d64fa5e73cbf48 Mon Sep 17 00:00:00 2001 From: li Date: Mon, 5 Jan 2026 20:54:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E4=B8=BA=E8=8B=B1=E6=96=87=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20v1.3.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 变更: - src/i18n/index.ts: initI18n 默认语言从 'en' 改为 'zh-CN' - package.json: 版本号 1.3.3 → 1.3.4 - src/utils/config.ts: 配置版本号更新到 1.3.4 - README.md: 添加 Codex CLI 和 Gemini CLI 徽章 - POST_DRAFT.md: 添加 Codex CLI 和 Gemini CLI 徽章,修正命令分类 问题: - 用户反馈 npx ccg-workflow 默认显示英文界面 - 中文用户需要手动选择语言 解决方案: - 将默认语言改为中文 (zh-CN) - fallbackLng 保持英文,确保翻译缺失时有回退 --- README.md | 4 +--- package.json | 2 +- src/i18n/index.ts | 2 +- src/utils/config.ts | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5f78de2..fdb50c0 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,7 @@ **Claude Code 主导 + Codex CLI + Gemini CLI + Claude CLI 协作工作流系统** -[![npm version](https://img.shields.io/npm/v/ccg-workflow.svg)](https://www.npmjs.com/package/ccg-workflow) -[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) -[![Claude Code](https://img.shields.io/badge/Claude%20Code-Compatible-green.svg)](https://claude.ai/code) +[![npm version](https://img.shields.io/npm/v/ccg-workflow.svg)](https://www.npmjs.com/package/ccg-workflow) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Claude Code](https://img.shields.io/badge/Claude%20Code-Compatible-green.svg)](https://claude.ai/code) [![Codex CLI](https://img.shields.io/badge/Codex%20CLI-Supported-orange.svg)](https://github.com/openai/openai-python) [![Gemini CLI](https://img.shields.io/badge/Gemini%20CLI-Supported-purple.svg)](https://ai.google.dev/) > **最新版本 v1.3.3**:修复 Windows PATH 配置安全问题 diff --git a/package.json b/package.json index 0c0b317..a79e292 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ccg-workflow", - "version": "1.3.3", + "version": "1.3.4", "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流", "type": "module", "packageManager": "pnpm@10.17.1", diff --git a/src/i18n/index.ts b/src/i18n/index.ts index a78b8d5..06ecebb 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -325,7 +325,7 @@ const en = { }, } -export async function initI18n(lang: SupportedLang = 'en'): Promise { +export async function initI18n(lang: SupportedLang = 'zh-CN'): Promise { if (!i18n.isInitialized) { await i18n.init({ lng: lang, diff --git a/src/utils/config.ts b/src/utils/config.ts index 616393a..a7f9322 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -45,7 +45,7 @@ export function createDefaultConfig(options: { }): CcgConfig { return { general: { - version: '1.3.3', + version: '1.3.4', language: options.language, createdAt: new Date().toISOString(), },