translate method

String translate()

Method that considers a string as a key from i18n and return the translation (value associated in your i18n to this key).

Implementation

String translate() {
  return KareeInternationalization.appLocalization.value.translation?[this]
          ?.toString() ??
      this;
}