Structure path with variable

Hi community,
I’m currently working on localization support for Sakawochi and would like to pick the texts from a structure by using the chosen locale as a variable in the path.
The problem is a little hard to describe so here comes a small example:

texts.en.title = “Hello”
texts.de.title = “Hallo”
texts.fr.title = “Salut”
locale = “en”

What I would like to do is for example replace the “en” from texts.en.title with the value from “locale” so that I could access the title via
texts.[locale].title
Is this possible somehow?

I think it should work:

VariableString(texts[VariableString(locale)].title)

That worked perfectly, thanks. :slight_smile: