feat(language): use consistent language normalization across the frontend (#2258)

This commit is contained in:
Zach
2026-08-06 07:31:47 +01:00
committed by GitHub
parent 41f6c93fe3
commit 1d707ffb0f
13 changed files with 58 additions and 128 deletions
@@ -83,6 +83,10 @@ export class LanguageResolverService {
};
}
displayName(raw: string | null | undefined): string {
return this.resolve(raw)?.displayName ?? '';
}
private canonicalize(lower: string): {base: string; tag: string} {
const aliased = LANGUAGE_ALIASES[lower];
if (aliased) {