I try to figure out how to translate text that comes from an API. Is it possible? I didnt find a way yet. I dont even think of long text, lets say translate country names. I ended up writing a switch statement, that matches country id and returns correct translation string for it. But this seems like a tedious solution, I have now decent amount of dynamic values to translate in the application. But what if there would be long list, writing switch statement for that is not a solution.
I tried write sth like t('body.list[${countryname}]') to dynamically match the dict key, but this threw compiler error.
Any idea? I wonder that there is nothing in this topic in the docs I think it should be a wide spread issue..