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

+2 -1
View File
@@ -6,6 +6,7 @@ import axios, {
type InternalAxiosRequestConfig,
} from "axios";
import { toast } from "sonner";
import i18n from "i18next";
import { getBasePath } from "@/lib/base-path";
import { isElectron } from "@/lib/electron";
import { clearTermixSessionStorage } from "@/shell/TabContext";
@@ -534,7 +535,7 @@ function createApiInstance(
if (typeof window !== "undefined") {
console.warn("Session expired - please log in again");
toast.warning("Session expired. Please log in again.");
toast.warning(i18n.t("errors.sessionExpiredLogin"));
window.dispatchEvent(new Event("termix:logout"));
}