Skip to content

[Feature] make-pot: Add extensions flag #466

@michaelw85

Description

@michaelw85

Feature Request

Describe your use case and the problem you are facing

A while back support was added to pass extensions to the make-json command: #439 but the make-pot still has hardcoded extensions for JS extraction. https://github.com/wp-cli/i18n-command/blob/main/src/MakePotCommand.php#L672

Describe the solution you'd like

I want to be able to pass the TS extension to make-pot. A current workaround is to include a dist folder, but of course, it would be much nicer to have references to the actual code in the resulting pot file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions