DHUIntlExtensions extension
DHUIntlNumExtensions
- on
Methods
-
genderSelect(
{required String other, String? female, String? male, String? desc, Map< String, Object> ? examples, String? locale, String? name, List<Object> ? args, String? meaning, bool? skip}) → String -
Available on String, provided by the DHUIntlExtensions extension
Selects a localized string based on the gender associated with this string, usingIntl.gender. -
getGenderCategory<
T> ({required T other, T? female, T? male, String? locale}) → T -
Available on String, provided by the DHUIntlExtensions extension
Determines the gender category of this string (e.g., 'female', 'male', or 'other') based on the current locale, usingIntl.genderLogic. -
setAsDefaultLocale(
) → void -
Available on String, provided by the DHUIntlExtensions extension
Sets this string as the default locale for subsequentIntloperations. -
setAsSystemLocale(
) → void -
Available on String, provided by the DHUIntlExtensions extension
Sets this string as the system locale, typically obtained from browser settings or the operating system. -
translate(
{String? desc = '', Map< String, Object> ? examples, String? locale, String? name, List<Object> ? args, String? meaning, bool? skip}) → String -
Available on String, provided by the DHUIntlExtensions extension
Translates this string usingIntl.message, returning the localized version.