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
Flag
Optional unicode flag emoji or country code for UI rendering.
public string Flag { get; }
Property Value
IsRtl
True for right-to-left scripts (Arabic, Hebrew, etc.) — mirror layouts accordingly.
public bool IsRtl { get; }
Property Value
Name
Human-readable display name in the locale-picker UI (typically autonym).
public string Name { get; }