LocaleInfo

One declared locale in StoryBonsai.Runtime.Models.Project.SupportedLocales — language code plus display metadata. Exposed via AvailableLocales.

public class LocaleInfo

Inheritance System.Object → LocaleInfo

Constructors

LocaleInfo()

Parameterless constructor for JSON deserialization. Prefer the parameterized overload when constructing a LocaleInfo directly.

public LocaleInfo();

LocaleInfo(string, string, string, bool)

Construct a LocaleInfo with all fields populated.

public LocaleInfo(string code, string name, string flag, bool isRtl=false);
Parameters

code System.String

BCP 47 language code (e.g. "en", "fr-CA").

name System.String

Human-readable display name (typically autonym).

flag System.String

Unicode flag emoji or country code for UI rendering.

isRtl System.Boolean

True for right-to-left scripts (Arabic, Hebrew, etc.).

Properties

Code

BCP 47 language code (e.g. "en", "fr-CA").

public string Code { get; }
Property Value

System.String

Flag

Optional unicode flag emoji or country code for UI rendering.

public string Flag { get; }
Property Value

System.String

IsRtl

True for right-to-left scripts (Arabic, Hebrew, etc.) — mirror layouts accordingly.

public bool IsRtl { get; }
Property Value

System.Boolean

Name

Human-readable display name in the locale-picker UI (typically autonym).

public string Name { get; }
Property Value

System.String

Docs last synced: 2026-07-08
Screenshot viewer