"Speak Text" action doesn’t accept variable for langage choice

Hello,

I don’t remember if this had worked on previous iOS versions, but it seems impossible to use variable (Language Codes ISO-639) as language choice on “Speak Text” action.
Do Apple had changed the language code formatting?

Currenttly workaround: if Speak text(english) / if Speak Text(spanish) / …

Thanks for help.