translate method

String translate(
  1. dynamic key
)

Implementation

String translate(var key) {
  dynamic value = _localizedValues;
  for (int i = 0; i < key.length; i++) {
    value = value[key[i]];
  }
  return value ?? key.last;
}