@hebcal/core
    Preparing search index...

    Interface LocaleData

    Translations for a single locale, in the "compact" JSON shape produced by gettext-parser from a .po file. Pass one of these to Locale.addLocale or Locale.addTranslations.

    Translations live under the empty-string context; other gettext contexts are ignored.

    import {LocaleData, Locale} from '@hebcal/hdate';
    const poFr: LocaleData = {
    headers: {'plural-forms': 'nplurals=2; plural=(n>1);'},
    contexts: {'': {Shabbat: ['Chabbat'], Adar: ['Adar']}},
    };
    Locale.addLocale('fr', poFr);
    interface LocaleData {
        contexts: Record<string, StringArrayMap>;
        headers: Headers;
    }
    Index
    contexts: Record<string, StringArrayMap>

    gettext contexts; translations are read from the '' context

    headers: Headers

    Header metadata from the .po file