StaticaddRegister locale translations.
Locale name (i.e.: 'he', 'fr')
parsed data from a .po file.
StaticaddAdds a translation to locale, replacing any previous translation.
Locale name (i.e: 'he', 'fr').
Message ID to translate
Translation text
StaticaddAdds multiple translations to locale, replacing any previous translations.
The locale must already be registered (typically via addLocale);
to register a brand-new locale instead, call addLocale directly.
Use this method to merge an additional .po file (e.g. holiday
translations supplied by a separate @hebcal/* package) into an
existing locale.
Locale name (i.e: 'he', 'fr').
parsed data from a .po file.
StaticcopyReturns a new LocaleData derived from data with niqqud (vowel
points) stripped from every translation value. The input is not
modified.
This is the helper used internally to build the he-x-NoNikud
locale from he; call it when registering a derived "no nikud"
variant of a custom Hebrew-script locale.
StaticgetStaticgettextBy default, if no translation was found, returns id.
Message ID to translate
Optionallocale: stringOptional locale name (i.e: 'he', 'fr'). Defaults to no-op locale.
StatichasStatichebrewStaticisStaticlookupReturns translation only if locale offers a non-empty translation for id.
Otherwise, returns undefined.
Message ID to translate
Optionallocale: stringOptional locale name (i.e: 'he', 'fr'). Defaults to no-op locale.
StaticordinalRenders a number in ordinal, such as 1st, 2nd or 3rd
Optionallocale: stringOptional locale name (i.e: 'he', 'fr'). Defaults to no-op locale.
A locale in Hebcal is used for translations/transliterations of holidays.
@hebcal/hdatesupports 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. "שבת")