morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::FormatContext Struct Reference

What the display functions and t format with: the client's locale and its formatting facts. More...

#include <expression.hpp>

Public Attributes

std::string locale = "en"
 The active BCP 47 locale.
render::NumericLocale numeric {}
 The locale's number formatting. Holds views: the strings it names must outlive the context.
render::TranslationProvider translations
 The message catalogue; empty shows every fallback.
UnitTable units
 The units quantities convert through.
std::int32_t utcOffsetMinutes = 0
 The display zone's offset from UTC, in minutes.
DateFormatter dates
 The date formatter; empty uses ISO 8601 (2026-10-11, 2026-10-11 08:30).

Detailed Description

What the display functions and t format with: the client's locale and its formatting facts.

Definition at line 1047 of file expression.hpp.

Member Data Documentation

◆ locale

std::string morph::ui::FormatContext::locale = "en"

The active BCP 47 locale.

Definition at line 1049 of file expression.hpp.

◆ numeric

render::NumericLocale morph::ui::FormatContext::numeric {}

The locale's number formatting. Holds views: the strings it names must outlive the context.

Definition at line 1051 of file expression.hpp.

◆ translations

render::TranslationProvider morph::ui::FormatContext::translations

The message catalogue; empty shows every fallback.

Definition at line 1053 of file expression.hpp.

◆ units

UnitTable morph::ui::FormatContext::units

The units quantities convert through.

Definition at line 1055 of file expression.hpp.

◆ utcOffsetMinutes

std::int32_t morph::ui::FormatContext::utcOffsetMinutes = 0

The display zone's offset from UTC, in minutes.

Definition at line 1057 of file expression.hpp.

◆ dates

DateFormatter morph::ui::FormatContext::dates

The date formatter; empty uses ISO 8601 (2026-10-11, 2026-10-11 08:30).

Definition at line 1059 of file expression.hpp.


The documentation for this struct was generated from the following file: