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.
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user