wp-cli / i18n-command

Provides internationalization tools for WordPress projects.
MIT License
96 stars 52 forks source link

make-php - Make output file content pretty #395

Open sovetski opened 3 months ago

sovetski commented 3 months ago

Feature Request

Describe your use case and the problem you are facing

When we do wp i18n make-php it creates PHP files containing one line, like minified PHP, but If we want to delete the old .po/.mo files to work with only PHP translations, working one line generated files is not practical

image

Describe the solution you'd like

Formatted output will look better

image

swissspidy commented 3 months ago

We can add a pretty-print option like we have for make-json. Wanna help put a PR together? :)

sovetski commented 3 months ago

We can add a pretty-print option like we have for make-json. Wanna help put a PR together? :)

Done: https://github.com/wp-cli/i18n-command/pull/396

Let me know if something is not OK 😊