TranslationStringHelper extension

Extension on String to provide translation and localization helpers.

on

Properties

lt String

Available on String, provided by the TranslationStringHelper extension

Localizes the string using translation options.
no setter
tr String

Available on String, provided by the TranslationStringHelper extension

Synchronously translates the string using the current locale.
no setter
trNumber String

Available on String, provided by the TranslationStringHelper extension

Translates the string with number formatting applied.
no setter

Methods

trAsync([Locale? locale]) Future<String>

Available on String, provided by the TranslationStringHelper extension

Asynchronously translates the string for a specific locale.
trWithOption({String? name, String? defaultValue, String replace(String)?, bool applyNumber = false, bool applyRtl = false, bool applyTranslator = true}) String

Available on String, provided by the TranslationStringHelper extension

Translates the string with optional customization.