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
Is this possible somehow?