add Chinese translations for "follow" and "stop generating"; log translation misses only for non-English
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -142,6 +142,8 @@ const LANG_MAP: Record<string, string> = {
|
||||
"New Chat": "新对话",
|
||||
"Delete Chat": "删除对话",
|
||||
"removed from context": "已从上下文中移除",
|
||||
follow: "跟随",
|
||||
"stop generating": "停止生成",
|
||||
};
|
||||
|
||||
export default LANG_MAP;
|
||||
|
||||
Reference in New Issue
Block a user