Danny Blue<p>create localized lists of months and days of the week.</p><p>const MONTH_LABELS = Array.from({ length: 12 }).map((_, i) => {<br> return new Date(0, i).toLocaleString("es", { month: "long" });<br>});</p><p>const DAY_OF_WEEK_LABELS = Array.from({ length: 7 }).map((_, i) => {<br> return new Date(0, 0, i).toLocaleString("es", {<br> weekday: "long",<br> });<br>});</p><p><a href="https://indieweb.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> <a href="https://indieweb.social/tags/webdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webdev</span></a></p>