API
@agape/locale

setLocale Function

Set the current locale.

API

function setLocale(  locale: undefined |  | string): void

setLocale

void

Set the current locale.

@paramlocale:  undefined | "null" | string
The BCP 47 locale string to use (e.g. "en-US", "fr-FR"), or null/undefined to reset to system locale.
@returnsvoid

Description

Set the current locale.