Your ortho md should have given you instructions to prepare you for your surgery and what follows.
In short, recovery from ankle replacement takes many months. You will be able to bear weight relatively soon after the surgery. However, it will take many months to regain full range of motion and normalize your walking pattern. For more information please visit www.Orthodoc.Aaos.Org/footankle.