tr property

String get tr

Synchronously translates the string using the current locale.

Example:

"hello".tr; // "Hola" if locale is 'es'

Implementation

String get tr => Translation.tr(this);