@serenity-is/corelib / Culture
Variable: Culture
Culture:
Locale
Defined in: src/base/formatting.ts:120
Current culture used by all formatting and parsing helpers, analogous to CultureInfo.CurrentCulture.
Remarks
Initialized by resetCultureSettings. When a <script id="ScriptCulture"> element containing a JSON object is present (rendered by _LayoutHead.cshtml), its values override the defaults. The DecimalSeparator / GroupSeparator keys are mapped explicitly; remaining keys are camel-cased from PascalCase. The server sends the names of the months and days, the AM / PM designators, the time separator and the first day of the week of its current culture there, so they are localized; without it they are the English ones of Invariant.