Skip to content

@swapped/connect-sdk / core / setLocale

Function: setLocale() ​

setLocale(locale, options?): Promise<void>

Defined in: src/locales/locale.load.ts:169

Switch the process-wide locale and fetch its catalog. The locale updates immediately; messages re-resolve when the catalog arrives.

Parameters ​

locale ​

string

options? ​

SetLocaleOptions = {}

Returns ​

Promise<void>