@wdprlib/render
    Preparing search index...

    Interface RenderI18n

    Caller-owned, already selected/merged locale catalog. No translations are bundled.

    interface RenderI18n {
        locale: string;
        messages: Readonly<Partial<Record<RenderMessageId, string>>>;
        onError?: (
            error: unknown,
            id:
                | "bibliography.title"
                | "button.backlinks"
                | "button.delete"
                | "button.edit"
                | "button.edit-append"
                | "button.edit-meta"
                | "button.edit-sections"
                | "button.files"
                | "button.history"
                | "button.lock-page"
                | "button.parent"
                | "button.print"
                | "button.rename"
                | "button.site-tools"
                | "button.source"
                | "button.tags"
                | "button.talk"
                | "button.unknown"
                | "button.watchers"
                | "collapsible.hide"
                | "collapsible.show"
                | "embed.invalid"
                | "footnote.title"
                | "gallery.empty"
                | "include.missing"
                | "module.join"
                | "module.unknown"
                | "pager.info"
                | "pager.next"
                | "pager.previous"
                | "rate.cancel"
                | "rate.down"
                | "rate.error"
                | "rate.neutral"
                | "rate.up"
                | "toc.fold"
                | "toc.title"
                | "toc.unfold"
                | "user.anonymous",
        ) => void;
    }
    Index

    Properties

    locale: string

    BCP 47 locale used for ICU formatting of supplied messages.

    messages: Readonly<Partial<Record<RenderMessageId, string>>>

    Missing IDs fall back to the English source message, formatted with en.

    onError?: (
        error: unknown,
        id:
            | "bibliography.title"
            | "button.backlinks"
            | "button.delete"
            | "button.edit"
            | "button.edit-append"
            | "button.edit-meta"
            | "button.edit-sections"
            | "button.files"
            | "button.history"
            | "button.lock-page"
            | "button.parent"
            | "button.print"
            | "button.rename"
            | "button.site-tools"
            | "button.source"
            | "button.tags"
            | "button.talk"
            | "button.unknown"
            | "button.watchers"
            | "collapsible.hide"
            | "collapsible.show"
            | "embed.invalid"
            | "footnote.title"
            | "gallery.empty"
            | "include.missing"
            | "module.join"
            | "module.unknown"
            | "pager.info"
            | "pager.next"
            | "pager.previous"
            | "rate.cancel"
            | "rate.down"
            | "rate.error"
            | "rate.neutral"
            | "rate.up"
            | "toc.fold"
            | "toc.title"
            | "toc.unfold"
            | "user.anonymous",
    ) => void

    Invalid messages fall back to English. This callback may throw to fail the render.