setLocale function

void setLocale(
  1. String locale
)

Changes the active locale globally on BloomI18n.instance.

Updates the reactive signal, triggering automatic re-renders in observing Live components.

setLocale('fr-FR');

See also:

Implementation

void setLocale(String locale) => BloomI18n.instance.setLocale(locale);