Make UI language, timestamps and live feedback consistent

This commit is contained in:
2026-10-07 19:46:40 -04:00
parent 0ed3cd6b47
commit 70185eb98c
81 changed files with 656 additions and 332 deletions
+6
View File
@@ -1,5 +1,11 @@
import { parseServerName, T5_ZOMBIE_MAPS, T6_ZOMBIE_MAPS, zombieMaps } from '../map-aliases.js';
export function gameTitle(game: string | null | undefined, compact = false): string {
if (game?.toLowerCase() === 't5') return compact ? 'BO1' : 'Black Ops I';
if (game?.toLowerCase() === 't6') return compact ? 'BO2' : 'Black Ops II';
return game?.toUpperCase() || 'Unknown game';
}
export function mapTitle(map: string | null | undefined): string {
return [...T5_ZOMBIE_MAPS, ...T6_ZOMBIE_MAPS].find((entry) => entry.canonical === map?.toLowerCase())?.friendly ?? map ?? '—';
}