xsoulspace_locale library

Classes

KeyboardLanguage
A class representing keyboard language options.
LocaleLogic
Locales
A class that holds the supported locales for the application.
LocalizationConfig
A class to configure the localization package.
LocalizedMap
A class representing a localized map of values for different languages.
NamedLocale
A class representing a named locale for user selection.
UiLanguage
A class representing a language.
UiLocaleNotifier

Extensions

UiLanguageX on Locale

Properties

namedLocalesMap Map<UiLanguage, NamedLocale>
A map that associates each language with its corresponding named locale.
no setter

Functions

getLanguageCodeByStr(String language) String
Returns the language code from a given language name.
localeFromString(String? languageCode) Locale?
Converts a language code string to a corresponding Locale.
localeToString(Locale? locale) String?
Converts a Locale to its corresponding language code string.
localeValueFromMap(dynamic map) Map<UiLanguage, String>
Converts a dynamic map to a map of UiLanguages and their corresponding values.
localeValueToMap(Map<UiLanguage, String> locales) Map<String, String>
Converts a map of UiLanguages and their corresponding values to a string map.