tr function
Shorthand translation alias accepting positional args.
Evaluates messageId on the global BloomI18n.instance.
final text = tr('welcome_banner', {'user': 'Bob'});
See also:
- t, the named-parameter translation function.
Implementation
String tr(
String messageId, [
Map<String, Object>? args,
]) =>
BloomI18n.instance.t(messageId, args: args);