utils
    Preparing search index...

    Function createPlaceholderReplacer

    • Creates a utility for replacing a specific placeholder string. This is useful for building text templates where the placeholder name is dynamic.

      Parameters

      • name: string

        The name of the placeholder (e.g., 'user.name').

      Returns { placeholder: string; replace: (value: string, replacement: string) => string }

      An object containing the generated placeholder string and a replacement function.