translate function

String translate(
  1. String key, {
  2. Map<String, dynamic>? args,
})

Translate the selected key into the currently selected locale

Implementation

String translate(String key, {Map<String, dynamic>? args}) {
  return Localization.instance.translate(key, args: args);
}