translate method

dynamic translate()

Implementation

translate() {
  if (selectedLanguage.languageCode == "en") {
    return en[this];
  } else {
    return ar[this];
  }
}