初步集成next-intl支持多语言

This commit is contained in:
xintaofei
2026-03-07 10:08:05 +08:00
parent efd87dbd9c
commit 934f689b08
20 changed files with 1186 additions and 89 deletions

View File

@@ -34,6 +34,7 @@ import type {
FileEditContent,
FileSaveResult,
GitLogEntry,
SystemLanguageSettings,
SystemProxySettings,
McpAppType,
LocalMcpServer,
@@ -277,6 +278,16 @@ export async function updateSystemProxySettings(
return invoke("update_system_proxy_settings", { settings })
}
export async function getSystemLanguageSettings(): Promise<SystemLanguageSettings> {
return invoke("get_system_language_settings")
}
export async function updateSystemLanguageSettings(
settings: SystemLanguageSettings
): Promise<SystemLanguageSettings> {
return invoke("update_system_language_settings", { settings })
}
export async function mcpScanLocal(): Promise<LocalMcpServer[]> {
return invoke("mcp_scan_local")
}