10 lines
204 B
TypeScript
10 lines
204 B
TypeScript
|
|
const NAMES: Record<string, string> = {
|
||
|
|
de: 'Deutsch',
|
||
|
|
en: 'English'
|
||
|
|
};
|
||
|
|
|
||
|
|
export function displayLanguage(code: string): string {
|
||
|
|
if (!code) return '?';
|
||
|
|
return NAMES[code] ?? code.toUpperCase();
|
||
|
|
}
|