From 9c51f7fdbc175c0c080d6a3d1373f5e4716ffe90 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 3 Nov 2026 15:21:17 +0800 Subject: [PATCH] gui: "deepseek-v4.1-flash tokens (est.)" is said in every language WorkBuddy 0.2.19 (plugins #663) names the China build's token window "deepseek-v4.1-flash tokens (est.)". The GUI shows a window's name through t(), so zh, zh-TW, ja and de read it in English. Added beside "Free model tokens" in i18n.js, and to TestPluginWindowWordsSaidInEveryLanguage's workbuddy words, so a missing translation is red. Run on mote at this tree: go test ./internal/gui (ok except #3949's TestMainWindowCorners/macOS_26_SDK, unrelated, red alone on macOS 27); node --test internal/gui/tests/i18n-keys.test.cjs 4/4. Not tried: the card's look in the GUI with a real China account. --- internal/gui/assets/i18n.js | 4 ++++ internal/gui/traytip_words_test.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.js index 278568b5c..d94cd401c 100644 --- a/internal/gui/assets/i18n.js +++ b/internal/gui/assets/i18n.js @@ -4228,6 +4228,7 @@ const I18N = { "Purchased credits": "已购积分", "Promotional Credits": "促销积分", "Free model tokens": "免费模型 token", + "deepseek-v4.1-flash tokens (est.)": "deepseek-v4.1-flash token(估算)", "Free models": "免费模型", "Free usage": "免费用量", "Free trial": "免费试用", @@ -8688,6 +8689,7 @@ const I18N = { "Purchased credits": "已購積分", "Promotional Credits": "促銷積分", "Free model tokens": "免費模型 token", + "deepseek-v4.1-flash tokens (est.)": "deepseek-v4.1-flash token(估算)", "Free models": "免費模型", "Free usage": "免費用量", "Free trial": "免費試用", @@ -13169,6 +13171,7 @@ const I18N = { "Purchased credits": "購入済みクレジット", "Promotional Credits": "プロモーションクレジット", "Free model tokens": "無料モデルのトークン", + "deepseek-v4.1-flash tokens (est.)": "deepseek-v4.1-flash のトークン(推定)", "Free models": "無料モデル", "Free usage": "無料利用分", "Free trial": "無料トライアル", @@ -17664,6 +17667,7 @@ const I18N = { "Purchased credits": "Gekaufte Credits", "Promotional Credits": "Aktionsguthaben", "Free model tokens": "Token für kostenlose Modelle", + "deepseek-v4.1-flash tokens (est.)": "deepseek-v4.1-flash-Token (geschätzt)", "Free models": "Kostenlose Modelle", "Free usage": "Kostenlose Nutzung", "Free trial": "Kostenlose Testphase", diff --git a/internal/gui/traytip_words_test.go b/internal/gui/traytip_words_test.go index a3220e573..c6a92f0bd 100644 --- a/internal/gui/traytip_words_test.go +++ b/internal/gui/traytip_words_test.go @@ -51,7 +51,7 @@ func TestPluginWindowWordsSaidInEveryLanguage(t *testing.T) { // units "credits", "tokens", "requests", "questions", // window names - "Credits", "Extra credits", "Prepaid credits", "Free model tokens", // workbuddy + "Credits", "Extra credits", "Prepaid credits", "Free model tokens", "deepseek-v4.1-flash tokens (est.)", // workbuddy "Add-on credits", "Dedicated credits", "Shared credits", "Total credits", // qoder "Monthly credits", "Purchased credits", "5-hour window", // agnes "Promotional Credits", // gcp-ai