We tried the workaround you suggested and managed to get the language.
One issue we are facing is. When we render the app proxy page response/HTTP response, we set Content-Type to application/liquid. Menu links render without the language URL.
Anyway we can set the Language of the Proxy response/HTTP response. so that resulting Liquid knows the language to use.
Thanks!