fix: file manager and sftp text showing raw i18n keys

This commit is contained in:
LukeGus committed 2026-10-01 13:13:45 -05:00
1 parent 9015d5dccb
commit 95a5e75495
38 files changed
+61 -45

No files matched your search

@@ -47,13 +47,9 @@ vi.mock("../../src/frontend/transferMetricsFormat", () => ({
createFormatTransferMetrics: () => () => "",
}));
vi.mock("react-i18next", () => ({
useTranslation: () => ({ t: (key: string) => key }),
initReactI18next: { type: "3rdParty", init: () => {} },
}));
vi.mock("@termix/plugin-sdk/frontend", async (importOriginal) => ({
...(await importOriginal<typeof import("@termix/plugin-sdk/frontend")>()),
useTranslation: () => ({ t: (key: string) => key, language: "en" }),
useSettings: () => ({
values: { confirmBeforeTrash: api.confirmBeforeTrash },
}),