UNPKG

gedcom-ts

Version:

TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.

16 lines (15 loc) 1.18 kB
/** Booklet narrative / PDF locales (aligned with gedcomts.com site languages). */ export type BookletLocale = 'en' | 'fr' | 'de' | 'nl' | 'es' | 'zh' | 'it' | 'pt' | 'pl' | 'ar' | 'he'; export declare const DEFAULT_BOOKLET_LOCALE: BookletLocale; export declare const BOOKLET_LOCALES: readonly BookletLocale[]; /** Locales with full booklet copy (messages, dates, places, gender, narratives). */ export declare const BOOKLET_LOCALES_IMPLEMENTED: readonly BookletLocale[]; export declare const BOOKLET_RTL_LOCALES: readonly BookletLocale[]; export declare function isBookletLocale(value: string | null | undefined): value is BookletLocale; export declare function resolveBookletLocale(locale?: BookletLocale): BookletLocale; export declare function isBookletLocaleRtl(locale?: BookletLocale): boolean; export declare function bookletTextDirection(locale?: BookletLocale): 'ltr' | 'rtl'; /** BCP 47 tag for `toLocaleDateString` on the PDF cover. */ export declare function bookletLocaleToBcp47(locale: BookletLocale): string; /** `Intl.Collator` / `localeCompare` tag for chapter name ordering. */ export declare function bookletLocaleCompareTag(locale: BookletLocale): string;