translate method
Get the translation mapped to key
Implementation
String translate(String key) {
var result = dictionary[key.toLowerCase()];
if (result == null && langCode != 'en') {
log('($langCode) need to translate: $key');
return key;
}
return result ?? key;
}