translate method

String translate(
  1. String value
)

Implementation

String translate(String value) => translations[value] ?? value;