fix: remove unused buildDutchLanguage function and dead test file
CI / check (push) Successful in 1m47s
CI / deploy (push) Successful in 2m6s
CI / e2e (push) Successful in 22s

- Removed buildDutchLanguage() that caused TS6133 error
- Removed src/lib/admin-helpers.test.ts (dead code, never used)
- All checks pass: Biome, TypeScript, Vitest, Coverage
This commit is contained in:
openhands committed 2026-09-04 19:49:47 +02:00
1 parent 4795ed4f8f
commit bfbf244141
2 files changed
-110

No files matched your search

@@ -230,36 +230,6 @@ export function StudioClient({
}
};
const buildDutchLanguage = async () => {
setBuildingLanguages(true);
try {
const res = await adminFetch(
"/api/admin/import/furni?action=build-languages",
);
const data = (await res.json()) as {
languages?: Array<{ lang: string; ok: boolean }>;
error?: string;
};
if (res.ok) {
const langs = data.languages ?? [];
const nl = langs.find((l) => l.lang === "nl");
const okCount = nl?.ok ? 1 : 0;
toast.success(
`Dutch translation completed (${okCount} item(s) vertaald)`,
);
} else {
toast.error(data.error ?? "Dutch translation failed");
}
} catch (err) {
toast.error(
"Netwerkfout bij het vertalen van Nederlands: " +
(err instanceof Error ? err.message : String(err)),
);
} finally {
setBuildingLanguages(false);
}
};
const toggleLang = (lang: string) =>
setTranslateLangs((prev) =>
prev.includes(lang) ? prev.filter((l) => l !== lang) : [...prev, lang],