Skip to content

Commit

Permalink
attached translations stats page
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlundberg committed Sep 15, 2024
1 parent ff80b04 commit 3a3a1f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
},
"StatsPage": {
"title": "Stats",
"overall": "Overall",
"advanced": "Advanced",
"total": "Total",
"category": "Category",
"global": "Global",
Expand Down
8 changes: 5 additions & 3 deletions src/app/[locale]/stats/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@ export default function Page() {
{/* header */}
<Card className="w-full mb-2 border p-3 flex flex-col gap-2">
<div className="flex justify-between gap-10">
<h2 className="font-black text-xl">Stats</h2>
<h2 className="font-black text-xl">{t("StatsPage.title")}</h2>
<div className="flex items-center gap-2 w-full justify-end">
<Select defaultValue="overall">
<SelectTrigger className="w-[180px]">
<SelectValue placeholder="Select" />
</SelectTrigger>
<SelectContent>
<SelectItem value="overall">Overall</SelectItem>
<SelectItem value="overall">
{t("StatsPage.overall")}
</SelectItem>
<SelectItem value="advanced" disabled>
Advanced
{t("StatsPage.advanced")}
</SelectItem>
</SelectContent>
</Select>
Expand Down
4 changes: 2 additions & 2 deletions src/components/stats/CategoryStatistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export default function CategoryStatistics() {
<TableHeader>
<TableRow>
<TableHead></TableHead>
<TableHead>Global</TableHead>
<TableHead>Sessions</TableHead>
<TableHead>{t("StatsPage.global")}</TableHead>
<TableHead>{t("StatsPage.sessions")}</TableHead>
<TableHead>C All</TableHead>
<TableHead>C Session</TableHead>
</TableRow>
Expand Down

0 comments on commit 3a3a1f2

Please sign in to comment.