I have the following in config.yml
twig:
globals:
locale_list_sg: Singapore
locale_list_cn: China
In my twig template, I will like to get the values "Singpaore" and "China" based on a argument. Therefore, I concatenate them like this and display:
{{'locale_list_' ~ countryId}}
However, the above will display locale_list_sg instead of going into config.yml and extract the values.