tr method
Implementation
String tr() {
String result = this;
switch (localeCode) {
case "ar":
result = ar[result] ?? this;
break;
case "en":
result = en[result] ?? this;
break;
case "fr":
result = fr[result] ?? this;
break;
default:
result = this;
}
return result;
}