Skip to content

Commit 3b40ae7

Browse files
committed
feat: about page
1 parent ed3d429 commit 3b40ae7

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/renderer/src/lib/i18n.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,8 @@ export function useIconsTranslations() {
6060
return useTranslation("icons");
6161
}
6262

63+
export function usePagesTranslations() {
64+
return useTranslation("pages");
65+
}
66+
6367
export default i18n;

src/renderer/src/routes/about/page.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/com
33
import { Button } from "@/components/ui/button";
44
import { motion } from "motion/react";
55
import { copyTextToClipboard } from "@/lib/utils";
6+
import { usePagesTranslations } from "@/lib/i18n";
67

78
function Page() {
9+
const { t: tPages } = usePagesTranslations();
10+
811
const hostnames = ["about", "new-tab", "games", "omnibox", "error", "extensions"];
912

1013
return (
@@ -17,8 +20,8 @@ function Page() {
1720
>
1821
<Card className="border-border shadow-lg">
1922
<CardHeader>
20-
<CardTitle className="text-3xl font-bold">Flow URLs</CardTitle>
21-
<CardDescription>A list of available Flow browser URLs</CardDescription>
23+
<CardTitle className="text-3xl font-bold">{tPages("about.title")}</CardTitle>
24+
<CardDescription>{tPages("about.description")}</CardDescription>
2225
</CardHeader>
2326
<CardContent>
2427
<div className="space-y-4">
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"about.title": "Flow URLs",
3+
"about.description": "A list of available Flow browser URLs"
4+
}

0 commit comments

Comments
 (0)