@wp-blocks/make-pot
    Preparing search index...

    Class MakeJsonCommand

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Process a PO file and return the JSON data.

      Parameters

      • file: string

        The path to the PO file.

      • script: string

        The script to be translated.

      • encoding: BufferEncoding = "utf8"

        The encoding of the PO file.

      Returns MakeJson | null