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

@@ -1,5 +1,6 @@
import { GroupId, Match, MatchStatus, Team } from "./types";
import { venueFor } from "./venues";
import { localisedTeamName } from "./team-mappings";
// ----------------------------------------------------------------------------
// Caching: einfacher In-Memory-Cache mit TTL. Verhindert, dass jede Browser-
@@ -129,6 +130,7 @@ export async function fetchMatchesAndTeams(): Promise<{ matches: Match[]; teams:
teamMap.set(id, {
id, name: side.name, code: side.tla ?? "", group,
crest: side.crest ?? null,
localisedName: localisedTeamName(side.tla ?? "", side.name ?? ""),
});
}
}