How to translate a Custom Widget?

Custom Code

I created a custom widget to display some of my content. Now I am struggling to translate this widget. Of course I could create a map with all the translations inside and just access them by current language code but there must be a better way of doing that?

What have you tried so far?

Access translations by current language code from a static map inside the widget

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply