fix(i18n): localize admin recovery states
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user