Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix: apply CodeRabbit auto-fixes

coderabbitai[bot]6c088dad2cdf
diff --git a/apps/web/src/main.tsx b/apps/web/src/main.tsx
index 8433a2eb5..ca55134b9 100644
--- a/apps/web/src/main.tsx
+++ b/apps/web/src/main.tsx
@@ -4,6 +4,7 @@ import { QueryClientProvider } from "@tanstack/react-query";
import { createRouter, RouterProvider } from "@tanstack/react-router";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
+import { useTranslation } from "react-i18next";
import queryClient from "@/query-client";
import "@/index.css";
import { useAuth } from "@/components/providers/auth-provider/hooks/use-auth";
@@ -66,21 +67,23 @@ function RootCrashFallback({
error: Error;
resetError: () => void;
}) {
+ const { t } = useTranslation();
+
return (
<div className="flex min-h-screen items-center justify-center bg-background p-6">
<div className="max-w-md text-center">
<h1 className="text-2xl font-semibold text-foreground">
- Something went wrong
+ {t("common.error.title")}
</h1>
<p className="mt-2 text-sm text-muted-foreground">
- The page crashed unexpectedly. Refreshing usually fixes it.
+ {t("common.error.description")}
</p>
<button
type="button"
onClick={resetError}
className="mt-4 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90"
>
- Refresh page
+ {t("common.error.refreshPage")}
</button>
</div>
</div>
diff --git a/i18n/en-US.json b/i18n/en-US.json
index de0dd42ce..7201e68d5 100644
--- a/i18n/en-US.json
+++ b/i18n/en-US.json
@@ -53,6 +53,7 @@
},
"error": {
"title": "Something went wrong",
+ "description": "The page crashed unexpectedly. Refreshing usually fixes it.",
"troubleshooting": "Troubleshooting steps:",
"tryAgain": "Try Again",
"viewDeploymentGuide": "View Deployment Guide",