feat(i18n): localize the GitHub and GitLab task surfaces (#2283)

Co-authored-by: Kandev Agent <agent@kandev.dev>
This commit is contained in:
João Salavisa
2026-08-05 15:14:26 +02:00
committed by GitHub
parent 56350ffc2b
commit 58eee5a314
57 changed files with 1572 additions and 467 deletions
@@ -2,12 +2,14 @@
import type { TaskPR } from "@/lib/types/github";
import { TaskRowIndicator } from "./task-row-indicator";
import { useTranslation } from "react-i18next";
type PRRowTaskIndicatorProps = {
tasks: TaskPR[] | undefined;
};
export function PRRowTaskIndicator({ tasks }: PRRowTaskIndicatorProps) {
const { t } = useTranslation();
return (
<TaskRowIndicator
tasks={tasks?.map((task) => ({
@@ -16,7 +18,7 @@ export function PRRowTaskIndicator({ tasks }: PRRowTaskIndicatorProps) {
fallbackTitle: task.pr_title,
}))}
testIdPrefix="pr-row-task-indicator"
emptyLabel="No task created yet"
emptyLabel={t("github:noTaskCreatedYet")}
/>
);
}