gedcom-ts
Version:
TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.
23 lines (22 loc) • 1.13 kB
TypeScript
import type { BookletLocale } from './booklet-locale';
/** Sexe GEDCOM exploité pour les accords du livret (M, F, U, X). */
export type BookletSex = 'M' | 'F' | 'U' | 'X';
export interface PersonGenderWords {
readonly born: string;
readonly died: string;
readonly baptized: string;
readonly present: string;
readonly linked: string;
readonly offspring: string;
readonly descendant: string;
readonly childOf: string;
readonly parentOf: string;
}
/** Participles / role words aligned with the person's sex. U and X use neutral forms. */
export declare function personGenderWords(sex: BookletSex, locale?: BookletLocale): PersonGenderWords;
/** Plural suffix (French-style locales: 0 or 1 → singular; English: unused). */
export declare function pluralS(count: number, locale?: BookletLocale): string;
/** Singular / plural pick. */
export declare function pluralPick<T>(count: number, one: T, many: T): T;
export declare function recensedChildrenPhrase(count: number, locale?: BookletLocale): string;
export declare function otherUnionsPhrase(count: number, locale?: BookletLocale): string;