Table of Contents

Class SdkRegionalOptions

Namespace
RDCore.SDK.Server.Configuration
Assembly
RDCore.SDK.dll

The regional settings of the platform, bound from appsettings.json (Regional); en-US unless said otherwise.

public record SdkRegionalOptions : IEquatable<SdkRegionalOptions>
Inheritance
SdkRegionalOptions
Implements
Inherited Members

Properties

AMDesignator

What a time before noon is written with: AM by default.

public string AMDesignator { get; set; }

Property Value

string

CurrencySymbol

What a number may be written with, as an amount of money: $ by default.

public string CurrencySymbol { get; set; }

Property Value

string

DecimalSymbol

What separates the whole part of a number from its fraction: . by default.

public string DecimalSymbol { get; set; }

Property Value

string

DigitGroupingSymbol

What groups the digits of a number: , by default.

public string DigitGroupingSymbol { get; set; }

Property Value

string

Language

The language of the platform's user interface, as a culture name (en, fr, fr-CA): empty by default, for the machine's.

public string Language { get; set; }

Property Value

string

Remarks

It is the language of every message of every component: the client's, the language server's and those of the components it starts. It is only the language: how a number or a date is written and read stays with the other regional settings, and the session's Lcid still decides how text compares and what Format writes. It is applied when a component starts (UserInterfaceLanguage), and is never a part of ToSettings().

A name that is no culture the platform knows leaves the machine's language, with a warning. The platform's messages are in English and French: a culture of another language (de) is shown in English, by .NET's resource fallback, and says so once.

LongTimePattern

The Long Time format a time is written in: h:mm:ss tt by default.

public string LongTimePattern { get; set; }

Property Value

string

PMDesignator

What a time from noon on is written with: PM by default.

public string PMDesignator { get; set; }

Property Value

string

ShortDatePattern

The Short Date format a date is written in: M/d/yyyy by default.

public string ShortDatePattern { get; set; }

Property Value

string

TwoDigitYearMax

The last year a year written with one or two digits can be: 2049 by default.

public int TwoDigitYearMax { get; set; }

Property Value

int

Methods

ToSettings()

The settings these options say.

public RegionalSettings ToSettings()

Returns

RegionalSettings