MAIDR JavaScript API
    Preparing search index...

    Function interpolate

    • Fills a message template's placeholders.

      {name} is replaced by the parameter of that name; an absent parameter renders as nothing. {name|은는} additionally attaches the Korean particle whose form suits the value — see josa.ts. Any other modifier is ignored, so an English template that copies the placeholder still renders.

      Parameters

      • template: string

        The message text with placeholders

      • params: MessageParams = {}

        The values to substitute

      Returns string

      The rendered message