This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy at the same URL with .md appended. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

LocaleInfo Pennington.Localization

Metadata describing a configured locale.

Properties

Direction string
Text direction, "ltr" or "rtl".
DisplayName string
Human-readable name for the locale (e.g., "English", "Français").
HtmlLang string
Optional HTML lang attribute 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

DisplayName string
Human-readable name for the locale (e.g., "English", "Français").
Direction string
Text direction, "ltr" or "rtl".
HtmlLang string
Optional HTML lang attribute 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)
; }