mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
fix: translate hardcoded toasts and drop em dashes from ui text
This commit is contained in:
1 parent
3c66931245
commit
1b342322dc
17 files changed
+89
-52
No files matched your search
@@ -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"));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user