translate method

String translate(
  1. String key
)

Translates a given key.

key is the translation key. Returns the translated string.

Implementation

String translate(String key) {
  return translator.translate(key, _localizedStrings);
}