add Chinese translations for "follow" and "stop generating"; log translation misses only for non-English

This commit is contained in:
2025-02-08 11:03:20 +08:00
parent ed5f561148
commit 8cd43bec72
2 changed files with 5 additions and 1 deletions

View File

@@ -50,7 +50,9 @@ function tr(text: string, langCode: "en-US" | "zh-CN") {
const translatedText = langMap[text.toLowerCase()];
if (translatedText === undefined) {
console.log(`[Translation] not found for "${text}"`);
if (langCode !== "en-US") {
console.log(`[Translation] not found for "${text}"`);
}
return text;
}

View File

@@ -142,6 +142,8 @@ const LANG_MAP: Record<string, string> = {
"New Chat": "新对话",
"Delete Chat": "删除对话",
"removed from context": "已从上下文中移除",
follow: "跟随",
"stop generating": "停止生成",
};
export default LANG_MAP;