<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[לוקליזציה בhebcal&#x2F;core בnode]]></title><description><![CDATA[<p dir="auto">איך עובד  הלוקליזציה בhebcal/core?</p>
<p dir="auto">אני רוצה לקבל את זה כ "he-x-NoNikud"</p>
<pre><code>export const convertToHebrewDate = (dateString) =&gt; {
    const date = new Date(dateString);
    const hDate = new HDate(date);
    return `${hDate.getDate()} ב${hDate.getMonth()} ${hDate.getFullYear()}`;
};
</code></pre>
<p dir="auto">התיעוד <a href="https://hebcal.github.io/api/hdate/classes/Locale.html" target="_blank" rel="noopener noreferrer nofollow ugc">כאן</a> אבל אני לא מצליח להבין אותו,</p>
]]></description><link>https://tchumim.com/topic/16682/לוקליזציה-בhebcal-core-בnode</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 02:20:22 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/16682.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Oct 2024 22:50:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to לוקליזציה בhebcal&#x2F;core בnode on Mon, 28 Oct 2024 08:38:04 GMT]]></title><description><![CDATA[<pre><code>const { HDate, Locale, gematriya } = require("@hebcal/hdate");
Locale.useLocale("he-x-nonikud");

const convertToHebrewDate = (dateString) =&gt; {
  const date = new Date(dateString);
  const hDate = new HDate(date);
  return `${gematriya(hDate.getDate())} ב${Locale.lookupTranslation(
    hDate.getMonthName()
  )} ${gematriya(hDate.getFullYear())}`;
};

console.log(convertToHebrewDate("2021-09-07")); // א׳ בתשרי תשפ״ב

</code></pre>
]]></description><link>https://tchumim.com/post/164529</link><guid isPermaLink="true">https://tchumim.com/post/164529</guid><dc:creator><![CDATA[yossiz]]></dc:creator><pubDate>Mon, 28 Oct 2024 08:38:04 GMT</pubDate></item></channel></rss>