translate method
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() {
if (KareeInternationalization.i18n.isDisabled) {
log('Karee Internationalization is disabled, translation will not be applied for "$this"');
}
return KareeInternationalization.appLocalization.value.translation?[this]
?.toString() ??
this;
}