I don't think there's a problem with automagically inferring the language. It sounds like the problem lies in not being able to override that decision.
The route to revert language must be clear though, even when the UI is in a foreign language.
This can be trickier than it sounds. For instance, selecting English from a Japanese UI should be "English" not 英語. Conversely, from English to select Japanese has to be 日本語 not "Japanese".
That's exactly the thing, in an ideal world it would try to infer the language automatically, but still let you change it if you are not happy with it.