I have field names:
- field_en_image
- field_sv_image
node_lang is set as a variable in the .theme file under _preprocess_node hook.
I want to print the field dynamically in the twig template file based on the current language.
{{ node.["field_"~node_lang~"image"]|view }}
but this seems to be not working.