Maternity leave

Any idea how to go about to tell your manager you’re pregnant and plan your maternity leave? I’m so nervous! Ideas please