feat(i18n): replace hardcoded Chinese strings with i18n calls across frontend

Replace all user-visible hardcoded Chinese strings in Vue/TS source files
with proper i18n function calls and add corresponding translation keys
to all 4 locale files (zh-CN, en-US, ko-KR, ru-RU).

Changes:
- Replace 80+ hardcoded Chinese strings across 30+ source files
- Add ~450 new translation keys per locale file
- Cover components, views, utils, hooks, and API modules
- Remove Chinese fallback patterns (|| '中文') from existing t() calls
- Add mermaid toolbar and ollama date format translations

Intentionally preserved (backend API values / backward compatibility):
- FAQ CSV column headers and parsing constants
- RelevanceLevel type and Record key mappings
- Graph database engine status comparison ('未启用')
- Language name labels ('简体中文')
This commit is contained in:
ochan.kwon
2026-03-05 23:42:36 +09:00
committed by lyingbug
parent 65743da754
commit db7cef5f17
43 changed files with 2366 additions and 637 deletions
+3 -3
View File
@@ -453,7 +453,7 @@ const delCard = (index: number, item: any) => {
total.value--;
}
} else {
MessagePlugin.error("删除失败,请稍后再试!");
MessagePlugin.error(t('chat.deleteSessionFailed'));
}
})
}
@@ -495,7 +495,7 @@ const getMessageList = async (isLoadMore = false) => {
// Display all sessions globally without filtering
res.data.forEach((item: any) => {
let obj = {
title: item.title ? item.title : "新会话",
title: item.title ? item.title : t('menu.newSession'),
path: `chat/${item.id}`,
id: item.id,
isMore: false,
@@ -678,7 +678,7 @@ const gotopage = async (path: string) => {
}
// 清理所有状态和本地存储
authStore.logout();
MessagePlugin.success('已退出登录');
MessagePlugin.success(t('menu.logoutSuccess'));
router.push('/login');
return;
} else {