fix(i18n): localize admin recovery states

This commit is contained in:
cesnimda
2026-08-29 23:40:29 +02:00
parent 10ce0f2086
commit cf6509ce13
7 changed files with 125 additions and 42 deletions
@@ -250,11 +250,11 @@ export default function CareerProfilePage() {
setLoadError(null);
} catch (error: any) {
setMe(null);
setLoadError(String(error?.response?.data || error?.message || "Unable to load profile right now."));
setLoadError(String(error?.response?.data || error?.message || t("profileLoadFailed")));
} finally {
setLoading(false);
}
}, []);
}, [t]);
useEffect(() => {
void loadProfile();
@@ -292,14 +292,14 @@ export default function CareerProfilePage() {
const status = cvRunStatus(run);
const prior = previous[run.id];
if (activeRunLabels.has(prior) && status === "pending_review") {
toast(`CV ${run.trigger} is ready to review.`, "info");
toast(t("profileCvRunReady", { trigger: run.trigger }), "info");
}
if (activeRunLabels.has(prior) && status === "failed") {
toast(run.errorMessage || `CV ${run.trigger} failed.`, "error");
toast(run.errorMessage || t("profileCvRunFailed", { trigger: run.trigger }), "error");
}
previous[run.id] = status;
}
}, [extractionRuns, toast]);
}, [extractionRuns, t, toast]);
// Field-review lookup passed to the extracted sections. They stay decoupled from the full profile
// shape; the parent still owns structuredCv and the metadata source.