Added locale for the render function