fix: translate hardcoded toasts and drop em dashes from ui text

This commit is contained in:
LukeGus committed 2026-09-30 14:25:51 -05:00
1 parent 3c66931245
commit 1b342322dc
17 files changed
+89 -52

No files matched your search

@@ -3523,7 +3523,7 @@ const TerminalInner = forwardRef<TerminalHandle, SSHTerminalProps>(
source: TerminalImageUploadSource,
) {
if (file.type && !file.type.startsWith("image/")) {
toast.error("Choose an image file");
toast.error(t("terminal.imageChooseFile"));
return;
}
setIsImageUploading(true);
@@ -3548,7 +3548,7 @@ const TerminalInner = forwardRef<TerminalHandle, SSHTerminalProps>(
data: quoteTerminalImagePath(shellPath),
}),
);
toast.success(`Image uploaded: ${shellPath}`);
toast.success(t("terminal.imageUploaded", { path: shellPath }));
} else {
toast.warning(
`Image uploaded, but the terminal was not available to paste it: ${shellPath}`,
@@ -3567,7 +3567,7 @@ const TerminalInner = forwardRef<TerminalHandle, SSHTerminalProps>(
async function handleClipboardImage() {
if (!navigator.clipboard?.read) {
toast.error("Clipboard image access is not available in this browser");
toast.error(t("terminal.imageClipboardUnavailable"));
return;
}
setIsImageUploading(true);
@@ -3619,7 +3619,7 @@ const TerminalInner = forwardRef<TerminalHandle, SSHTerminalProps>(
await handleImageUpload(clipboardFile, "clipboard");
return;
}
toast.error("No image found in the clipboard");
toast.error(t("terminal.imageClipboardEmpty"));
} catch (error) {
toast.error(getErrorMessage(error, "Clipboard read failed"));
} finally {