setLocale abstract method
Sets the locale for the language provider.
The locale is used to translate the keys. Implementations should load translations for this locale if not already loaded.
locale: The locale code (e.g., 'en', 'fr', 'ar').
Implementation
void setLocale(String locale);