Can I use a variable in my process.env call?
I have the code
const optionsLang = `${lang}LANGOPTIONS`.replace("-","").toUpperCase();
and the .env file has
REACT_APP_ENUSLANGOPTIONS = {"title" : "applicationTitle", "buttonVerbiage":"Login Now"}
REACT_APP_ENCALANGOPTIONS = {"title" : "applicationTitle", "buttonVerbiage":"Login Now"}
REACT_APP_FRCALANGOPTIONS = {"title" : "applicationTitle", "buttonVerbiage":"Ouvir Une Session"}
REACT_APP_ESMXLANGOPTIONS = {"title" : "applicationTitle", "buttonVerbiage":"Iniciar Sesi%C3%B3n"}
and so on with various languages
so how can I do something like process.env.${optionsLang}
(since that doesn't work)?