fix(i18n): translate backend errors at UI boundaries
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user