maternity leave outside the US

Megan
I'm just curious how maternity leave outside the US works. We hear wonderful stories of paid leave that is a year long. Who pays you? Is your job protected? Does someone come in to take over for you then have to leave when you come back?