translate method
Implementation
String translate(String text) {
String? translationText;
if (locale.toLowerCase().trim() == "en") {
translationText = en[text];
} else if (locale.toLowerCase().trim() == "ar") {
translationText = ar[text];
}
return translationText ?? text;
}