I'm trying to translate an string like "filter [solved|date] clear". If I don't want to translate the parameters (solved|date), all works well.
MyLocalizations.of(context).clearFilter( filter.activeFilter)
But i want to translate the parameters, too. Because it's not possible do access the object properties dynamically, to following doesn't work:
MyLocalizations.of(context).clearFilter( MyLocalizations.of(context)[filter.activeFilter] )
I didn't find any examples :-( But I hope anybody can help me.
Best, Dominik
// edit: // the filter [solved|date] could be "solved" or "date"