feat(language): use consistent language normalization across the frontend (#2258)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user