fix(i18n): translate backend errors at UI boundaries

This commit is contained in:
Rahul authored and GitHub committed 2026-07-29 02:40:45 +08:00
1 parent 4422ac8e01
commit 2f44d36018
82 files changed
+1862 -335

No files matched your search

@@ -150,7 +150,7 @@ export function useSidebarConnectionMutationRuntime(options: SidebarConnectionMu
try {
await revealPathInFileManager(path);
} catch (error: any) {
toast(typeof error === "string" ? error : error?.message || String(error), 5000);
toast(translateBackendError(t, typeof error === "string" ? error : error?.message || String(error)), 5000);
}
}