Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

add translation for "back to dashboard" in SettingsLayout

daniel31x13af8a650096f4
diff --git a/apps/web/layouts/SettingsLayout.tsx b/apps/web/layouts/SettingsLayout.tsx
index 3136301c..646b48ba 100644
--- a/apps/web/layouts/SettingsLayout.tsx
+++ b/apps/web/layouts/SettingsLayout.tsx
@@ -3,12 +3,15 @@ import Navbar from "@/components/Navbar";
import React, { ReactNode } from "react";
import Link from "next/link";
import { Button } from "@/components/ui/button";
+import { useTranslation } from "next-i18next";
interface Props {
children: ReactNode;
}
export default function SettingsLayout({ children }: Props) {
+ const { t } = useTranslation();
+
return (
<div className="flex" data-testid="settings-wrapper">
<div className="hidden lg:block">
@@ -22,7 +25,7 @@ export default function SettingsLayout({ children }: Props) {
<Button asChild variant="ghost" size="sm" className="text-neutral">
<Link href="/dashboard">
<i className="bi-chevron-left text-md" />
- <p>Back to Dashboard</p>
+ <p>{t("back_to_dashboard")}</p>
</Link>
</Button>
</div>
diff --git a/apps/web/public/locales/en/common.json b/apps/web/public/locales/en/common.json
index 27e59174..5e2cf25a 100644
--- a/apps/web/public/locales/en/common.json
+++ b/apps/web/public/locales/en/common.json
@@ -527,5 +527,6 @@
"trial_left_plural": "Trial ends in {{count}} days. Subscribe.",
"trial_left_singular": "Trial ends in 1 day. Subscribe.",
"apply_members_roles_to_subcollections": "Apply members and roles to subcollections",
- "apply_members_roles_to_subcollections_desc": "This will apply the members and their roles to all existing subcollections."
+ "apply_members_roles_to_subcollections_desc": "This will apply the members and their roles to all existing subcollections.",
+ "back_to_dashboard": "Back to Dashboard"
}