In the UK, I am entitled to 2 weeks off work paid at a standard rate (£136.78 or 90% of your salary pro rata per week, whichever is lower). Most companies will pay your regular wage for those 2 weeks, and claim the SMP/SPP (statutory Maternity/Paternity Pay) for themselves on your behalf (ASMP/ASPP - Assisted SMP/SPP). This way the employees are not having to worry about losing money. Mothers are legally entitled 6 months off at 90% of their standard wage, a further 3 months with SMP and a further 3 months unpaid. All companies will generally pay for the year even if the last 6 months is SSP. The exception to this rule tend to be US owned companies like Amazon, Starbucks etc, they will pay you the SMP/SPP and that is it.
*source - I work for the HMRC (Her Majesties Revenue and Customs)