MAIDR JavaScript API
    Preparing search index...
    • 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.

      Kept apart from ./index, which carries the English dictionary, so a bundle with templates of its own -- a diagram adapter's -- can fill them the same way without it.

      Parameters

      • template: string

        The message text with placeholders

      • params: MessageParams = {}

        The values to substitute

      Returns string

      The rendered message