If you select text and change the language you can undo the change. If you place the cursor anywhere in text and change the language (for example, from English to French), choosing Undo will show it undone in the History panel but the language change will remain at the cursor position and the Character panel will reflect this. Typing will thus enter text in the wrong language (example, in French instead of in English). I don't know if this is Mac only.