How do you wean from breastfeeding?

i’m currently pregnant with my second and i need to get my 20 month old off the boob, how did you guys stop breastfeeding? she also hates any other milk and refuses to drink it help meeeee