Hebrew Number to Words in JavaScript (he-IL, hbo-IL) โ
Use he-IL for Modern Hebrew or hbo-IL for Biblical Hebrew when your application needs Hebrew number words with gender-aware forms and Shekel currency wording.
Locale codes:
he-IL,hbo-ILยท Numbering system: Short scale ยท Currency: ืฉืงื (Shekel) / ืืืืจื (Agora) ยท Script: Hebrew (RTL)
Install โ
npm install to-wordsBasic Conversion โ
import { ToWords } from 'to-words';
const tw = new ToWords({ localeCode: 'he-IL' });
tw.convert(100);
tw.convert(1000);
tw.convert(1000000);Gender โ
Hebrew has grammatical gender. Pass gender in options when the noun context requires it.
tw.convert(1, { gender: 'masculine' });
tw.convert(1, { gender: 'feminine' });Currency - Shekel / Agora โ
tw.convert(1234.56, { currency: true });
tw.convert('500.00', { currency: true, includeZeroFractional: true });Ordinal Numbers โ
tw.toOrdinal(1);
tw.toOrdinal(10);
tw.toOrdinal(100);Biblical Hebrew โ
const twBiblical = new ToWords({ localeCode: 'hbo-IL' });
twBiblical.convert(1000);hbo-IL uses Biblical Hebrew wording and is suited for religious texts, academic publishing, or Torah study apps.
Locale Codes โ
| Locale code | Country | Currency | Notes |
|---|---|---|---|
he-IL | Israel | ืฉืงื / ืืืืจื | Modern Hebrew; RTL; gender-aware |
hbo-IL | Israel | ืฉืงื / ืืจื | Biblical/Ancient Hebrew; RTL; gender-aware |
Related โ
FAQ โ
Q: Which locale code should I use for Modern Hebrew number-to-words output? Use he-IL.
Q: Does he-IL support grammatical gender? Yes. Pass gender: 'masculine' or gender: 'feminine' in the options object.
Q: What is hbo-IL for?hbo-IL is Biblical/Ancient Hebrew, suited for religious texts, academic publishing, or Torah study applications.