Merge pull request #17160 from 854562/truncate-language-strings

Truncate ISO-639-2 language display names at first delimiter
This commit is contained in:
Cody Robibero
2026-07-21 11:22:32 -04:00
committed by GitHub
5 changed files with 69 additions and 8 deletions
@@ -72,6 +72,14 @@ public interface ILocalizationManager
/// <returns>The correct <see cref="CultureDto" /> for the given language.</returns>
CultureDto? FindLanguageInfo(string language);
/// <summary>
/// Gets a human-readable display name for the given language code.
/// Truncates at the first semicolon or comma to avoid cluttered ISO-639-2 names.
/// </summary>
/// <param name="language">An ISO language code.</param>
/// <returns>The display name, or null if not found.</returns>
string? GetLanguageDisplayName(string language);
/// <summary>
/// Returns the language in ISO 639-2/T when the input is ISO 639-2/B.
/// </summary>