setLocale function
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:
- BloomI18n.setLocale, instance method.
- loadLocale, for asynchronous catalog loading.
Implementation
void setLocale(String locale) => BloomI18n.instance.setLocale(locale);