@serenity-is/corelib / Culture

Variable: Culture

Culture: Locale

Defined in: src/base/formatting.ts:95

Current culture, e.g. CultureInfo.CurrentCulture. This is overridden by settings passed from a <script> element in the page with id ScriptCulture containing a JSON object if available. This element is generally created in the _LayoutHead.cshtml file for Serenity applications, so that the culture settings determined server, can be passed to the client.