translate method

String translate(
  1. String key
)

Implementation

String translate(String key) {
  if(_localizedStrings == null || !_localizedStrings!.containsKey(key)) {
    return key;
  }
  return _localizedStrings![key]!;
}