const NAMES: Record = { de: 'Deutsch', en: 'English' }; export function displayLanguage(code: string): string { if (!code) return '?'; return NAMES[code] ?? code.toUpperCase(); }