translate method

Message translate(
  1. String language
)

It returns the message with the translated text if available locally

Implementation

Message translate(String language) =>
    copyWith(text: i18n?['${language}_text'] ?? text);