localized team names

This commit is contained in:
2026-06-24 12:17:46 -05:00
parent aa19c16f93
commit 7996ebc504
9 changed files with 79 additions and 10 deletions

View File

@@ -5,7 +5,10 @@ import { Team, ThirdPlaceRow } from "@/lib/types";
export default function ThirdPlace({
rows, teams,
}: { rows: ThirdPlaceRow[]; teams: Team[] }) {
const name = (id: string) => teams.find((t) => t.id === id)?.name ?? id;
const name = (id: string) => {
const t = teams.find((t) => t.id === id);
return t?.localisedName ?? t?.name ?? id;
};
return (
<div className="third-wrap">