monkey patch swapLangs in learn