How to tell a friend who’s lost a baby?

I need to tell my friend we are expecting (12+1 today) but have been struggling to find the words because she lost her baby at 8 weeks in December. We aren’t super close, but close enough that I want to tell her before we announce publicly. I lost my first pregnancy a couple years ago, and now I have a 15 month old son. I know exactly how she feels but I still can’t figure out the wording. Thank you!