Add locale to D3 API methods