defineCatalog( inputs: readonly Readonly< { alternatives?: readonly Readonly< { alternatives?: readonly Readonly<{ expression: string; translation?: string | undefined; commentary?: string | undefined; placeholders?: Readonly<Record<string, PlaceholderDefinitionInput>> | undefined; alternatives?: readonly Readonly<...>[] | undefined; }>[] | undefined
; commentary?: string; expression: string; placeholders?: Readonly<Record<string, PlaceholderDefinitionInput>>; translation?: string; }, >[]; commentary?: string; key: string; placeholders?: Readonly<Record<string, PlaceholderDefinitionInput>>; translation?: string; }, >[],): readonly Readonly< Readonly< { alternatives?: readonly Readonly< { alternatives?: readonly Readonly<{ expression: string; translation?: string | undefined; commentary?: string | undefined; placeholders?: Readonly<Record<string, PlaceholderDefinitionInput>> | undefined; alternatives?: readonly Readonly<...>[] | undefined; }>[] | undefined
; commentary?: string; expression: string; placeholders?: Readonly<Record<(...)
, (...)
>>; translation?: string; }, >[]; commentary?: string; key: string; placeholders?: Readonly<Record<string, PlaceholderDefinitionInput>>; translation?: string; }, >,>[]
Validate, defensively copy, and freeze a programmatic catalog. Duplicate keys are rejected and every localized string is validated.