replace links with localized links, hopefully this works