LocaleInfo
Pennington.Localization
Metadata describing a configured locale.
Properties
Directionstring- Text direction, "ltr" or "rtl".
DisplayNamestring- Human-readable name for the locale (e.g., "English", "Français").
HtmlLangstring- Optional HTML
langattribute value; when null, the locale code is used.
Constructors
LocaleInfo
#public LocaleInfo(string DisplayName, string Direction = "ltr", string HtmlLang = null)
Metadata describing a configured locale.
Parameters
DisplayNamestring- Human-readable name for the locale (e.g., "English", "Français").
Directionstring- Text direction, "ltr" or "rtl".
HtmlLangstring- Optional HTML
langattribute value; when null, the locale code is used.
Pennington.Localization.LocaleInfo
namespace Pennington.Localization;
/// Metadata describing a configured locale.
public record LocaleInfo
{
/// Text direction, "ltr" or "rtl".
public string Direction { get; set; }
/// Human-readable name for the locale (e.g., "English", "Français").
public string DisplayName { get; set; }
/// Optional HTML lang attribute value; when null, the locale code is used.
public string HtmlLang { get; set; }
/// Metadata describing a configured locale.
public LocaleInfo(string DisplayName, string Direction = "ltr", string HtmlLang = null)
;
}