I sprained my ankle 5th Aug whilst out on the mountain bike. Once I got home followed the ICE method, did so for a couple of days.
I was back commuting on the 13th Aug. I commute on SPDs, for which I use my left leg as my standing leg. I had sprained my right ankle so thankfully I only had to clip in/out at the start and finish as my ankle didn’t have the strength initially to do that at speed.
Resumed mountain biking on the 22nd August, again on SPDs. However it was October before I could really run on the ankle without any pain.
Hope this helps, obviously recover is different for everyone. Just don’t rush back. Also if a lot of bruising then perhaps worth getting it checked out to see if there is any ligament damage. years ago I did my ankle ligaments in playing 5s and both times I had to get physio to get the ankle back into shape.