Change default locale date d3 v4
<p><strong>I want to change the language to spanish in d3 dates.</strong></p>

<p>to do this in D3 v3 you can use</p>

<pre><code>var format = {
  "decimal": ".",
  "thousands": "",
  "days": ["Domingo", "Lunes", .....]}

  var localeFormatter = d3.locale(format)
</code></pre>

<p>but now in D3 v4 d3.locale is gone.   and  </p>

<pre><code>d3.timeFormatDefaultLocale(format)
</code></pre>

<p>seems to do nothing i dont know if is a bug or what.</p>

<p>I dont want to format the time like this link <a href="https://github.com/d3/d3-time-format#d3-time-format" rel="nofollow noreferrer">D3 time-format</a>. 
i want the language to change.</p>

<p>i have tried</p>

<pre><code>d3.local(format)
d3.timeFormatDefaultLocale(format)
d3.timeFormatLocale(format)
</code></pre>

<p>¿Can some one help me on this?...  </p>