currentLocale property
Locale?
get
currentLocale
Gets the current locale from the localization service.
Returns the currently active Locale if available, or null if the localization service has not been initialized.
This is useful for conditional rendering based on the current locale or for locale-specific formatting.
Implementation
Locale? get currentLocale => localization.currentLocale;