fix(i18n): close the lint-invisible gaps the guard structurally cannot see (#2470)

Co-authored-by: Kandev Agent <agent@kandev.dev>
This commit is contained in:
João Salavisa
2026-08-10 00:21:39 +02:00
committed by GitHub
parent 84ce139b35
commit fb63a88cd1
134 changed files with 2161 additions and 404 deletions
@@ -1,4 +1,5 @@
import { useCallback, useEffect, useSyncExternalStore } from "react";
import { t } from "@/lib/i18n";
import { requestPRReviewers } from "@/lib/api/domains/github-review-api";
import type { PRReview, RequestedReviewer, TaskPR } from "@/lib/types/github";
@@ -208,8 +209,8 @@ export function usePRScopedReviewRequest(
async (reviewer: string) => {
if (!workspaceId || !identity) {
toast({
title: "Failed to re-request review",
description: "Select a workspace before requesting review.",
title: t("github:failedToReRequestReview"),
description: t("github:selectWorkspaceBeforeRequestingReview"),
variant: "error",
});
return;
@@ -228,14 +229,17 @@ export function usePRScopedReviewRequest(
} catch (error) {
finishRequest(identity, reviewer, operationId, false);
toast({
title: "Failed to re-request review",
description: error instanceof Error ? error.message : "An error occurred",
title: t("github:failedToReRequestReview"),
description: error instanceof Error ? error.message : t("common:anErrorOccurred"),
variant: "error",
});
return;
}
finishRequest(identity, reviewer, operationId, true);
toast({ description: `Review re-requested from ${reviewer}`, variant: "success" });
toast({
description: t("github:reviewReRequestedFrom", { reviewer }),
variant: "success",
});
try {
refresh();
} catch {