I wish to keep the language in a command
\newcommand{\testlang}{english}
\begin{otherlanguage}{\testlang}
...
\end{otherlangauge}
However, \testlang is not expanded, and i get the error
! Package babel Error: You haven't defined the language testlang yet.
I've seen many tricks related to macro expansions, but I don't understand them well enough to know how to apply them in this scenario.