Add translations to user page

This commit is contained in:
Kalle
2022-08-13 10:27:19 +03:00
parent 5fc8ad637a
commit 1b652f52f0
2 changed files with 13 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ import { calendarEventPage, userPage } from "~/utils/urls";
import type { UserPageLoaderData } from "../u.$identifier";
export default function UserResultsPage() {
const { i18n } = useTranslation();
const { t, i18n } = useTranslation("user");
const [, parentRoute] = useMatches();
invariant(parentRoute);
const data = parentRoute.data as UserPageLoaderData;
@@ -19,11 +19,11 @@ export default function UserResultsPage() {
<table>
<thead>
<tr>
<th>Placing</th>
<th>Team</th>
<th>Tournament</th>
<th>Date</th>
<th>Mates</th>
<th>{t("results.placing")}</th>
<th>{t("results.team")}</th>
<th>{t("results.tournament")}</th>
<th>{t("results.date")}</th>
<th>{t("results.mates")}</th>
</tr>
</thead>
<tbody>

View File

@@ -1,4 +1,10 @@
{
"country": "Country",
"bio": "Bio"
"bio": "Bio",
"results.placing": "Placing",
"results.team": "Team",
"results.tournament": "Tournament",
"results.date": "Date",
"results.mates": "Mates"
}