From cbfaf46cad6052f73d9d0701d7592acecf03a98d Mon Sep 17 00:00:00 2001 From: fz999999 <62800289+fz999999@users.noreply.github.com> Date: Sun, 15 Mar 2026 18:27:11 +0800 Subject: [PATCH 1/2] feat: add Simplified Chinese UI localization --- index.html | 4 +- src-tauri/src/commands/account.rs | 11 ++- src-tauri/src/lib.rs | 7 +- src-tauri/tauri.conf.json | 4 +- src/App.tsx | 126 ++++++++++++++--------------- src/components/AccountCard.tsx | 43 ++++++---- src/components/AddAccountModal.tsx | 49 +++++------ src/components/UsageBar.tsx | 42 +++++----- 8 files changed, 152 insertions(+), 134 deletions(-) diff --git a/index.html b/index.html index 90be5fb..6010460 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,10 @@ - +
-- Multi-account manager for Codex CLI + Codex CLI 多账号与配额管理
Loading accounts...
+正在加载账号列表...
{error}
- Add your first Codex account to get started + 添加第一个 Codex 账号后即可开始使用
) : ( @@ -566,7 +562,7 @@ function App() { {activeAccount && (Waiting for browser login...
+等待浏览器完成登录
- Please open the following link in your browser to proceed: + 请在浏览器中打开以下链接继续登录:
- Click the button below to generate a login link. - You will need to open it in your browser to authenticate. + 点击下方按钮生成登录链接。 + 然后需要在浏览器中打开该链接完成认证。
)}- Import credentials from an existing Codex auth.json file + 从现有的 Codex `auth.json` 文件导入凭据
- A Desktop Application for Managing Multiple OpenAI Codex CLI Accounts
- Easily switch between accounts, monitor usage limits, and stay in control of your quota
+ 一款用于管理多个 OpenAI Codex CLI 账号的桌面应用
+ 可快速切换账号、查看配额使用情况,并更方便地管理你的额度