Most ankle sprains without ligament tears will have largely healed after two weeks: Even if you are not able to put your full weight on the foot, it will usually not hurt anymore.
If ligaments are torn or partially torn, it can take weeks for the ankle to work normally again. In some people who have more serious ligament injuries, it can even take two to three years for the ankle to become as strong and as mobile as before.