tr method
Implementation
String tr([BuildContext? context]) {
final ctx = context ?? Multilingo.context;
if (ctx != null) {
return AppLocalizations.of(ctx).translate(this);
}
// Fallback: return the key itself if no context is available
// This might happen if navigatorKey is not set up or used outside of widget tree
return this;
}