How to access current language inside a custom function?

Hello, the question is in the title: how can I access the app current language inside a custom function?

I need it to work with API return values, and to adapt the displayed text to the current app language. It would be quite more convenient than using a lot of text widgets and many conditional cases manually.

Iโ€™ve seen another related question here, this time about custom actions: https://community.flutterflow.io/custom-code/post/is-there-a-way-to-get-current-language-in-a-custom-action-fPhsP1NSXdafvWp

There is no answer for the moment.

2
3 replies