Skip to content

@serenity-is/corelib / resetCultureSettings

Function: resetCultureSettings()

resetCultureSettings(): void

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

Resets Culture to its default values derived from Invariant.

Returns

void

Remarks

  • Sets dateOrder to "dmy", dateFormat to "dd/MM/yyyy", and installs a stringCompare based on String.prototype.localeCompare with document.documentElement.lang when available.
  • If a <script id="ScriptCulture"> JSON block exists, its properties override the defaults (with special handling for DecimalSeparator / GroupSeparator).
  • Exports in vite8-symbol-typeinfo-workaround.md note that no Symbol.typeInfo side-effects occur here.