locale property
The current locale setting for the SDK.
This setting determines the language and regional preferences used throughout the SDK for text, formatting, and localization.
Default Value
English locale (en
) is used as the default
Supported Locales
- English:
en
- Default language - Arabic:
ar
- Right-to-left language support
Example
// Set to Arabic
AmwalSdkSettingContainer.locale = const Locale('ar');
// Set to English
AmwalSdkSettingContainer.locale = const Locale('en');
// Check current locale
if (AmwalSdkSettingContainer.locale.languageCode == 'ar') {
// Handle Arabic-specific logic
}
Implementation
static Locale locale = const Locale('en');