feat(i18n): 将前端用户可见中文硬编码改为四语言
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
dce915ea30
commit
ac7b53a523
105 files changed
+2928
-647
No files matched your search
@@ -1,3 +1,9 @@
|
||||
/**
|
||||
* main.ts
|
||||
* 用途:Vue 应用启动入口(pinia / router / i18n / 401 fetch 包装)。
|
||||
* 依赖:App.vue、router、i18n、config、auth sync、agentTabs。
|
||||
* 逻辑:挂载前设置 document.title;包装 fetch 以刷新 token 并派发未授权事件。
|
||||
*/
|
||||
import { createApp } from 'vue';
|
||||
import './style.css';
|
||||
import App from './App.vue';
|
||||
@@ -11,7 +17,7 @@ import { initAgentTabSync } from '@/shared/utils/agentTabs';
|
||||
|
||||
initAuthSync();
|
||||
initAgentTabSync();
|
||||
document.title = config.appTitle || 'AI工作台';
|
||||
document.title = String(i18n.global.t(config.appTitleKey));
|
||||
|
||||
const _rawFetch = window.fetch.bind(window);
|
||||
window.fetch = async (input: RequestInfo | URL, init?: RequestInit): Promise<Response> => {
|
||||
|
||||
Reference in new issue
Block a user