Static
addRegister locale translations.
Locale name (i.e.: 'he'
, 'fr'
)
parsed data from a .po
file.
Static
addStatic
addAdds multiple translations to locale
, replacing any previous translations.
Locale name (i.e: 'he'
, 'fr'
).
parsed data from a .po
file.
Static
getStatic
getStatic
gettextStatic
hebrewStatic
lookupStatic
ordinalStatic
useActivates a locale. Throws an error if the locale has not been previously added. After setting the locale to be used, all strings marked for translations will be represented by the corresponding translation in the specified locale.
Locale name (i.e: 'he'
, 'fr'
)
A locale in Hebcal is used for translations/transliterations of holidays.
@hebcal/hdate
supports four locales by defaulten
- default, Sephardic transliterations (e.g. "Shabbat")ashkenazi
- Ashkenazi transliterations (e.g. "Shabbos")he
- Hebrew (e.g. "שַׁבָּת")he-x-NoNikud
- Hebrew without nikud (e.g. "שבת")