js-lingui icon indicating copy to clipboard operation
js-lingui copied to clipboard

Generate only Po files with content

Open jzsn2018 opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. When I use extract message, some files without message ID defined in the source file will also be generated with an empty Po file, I hope it is not allowed when generating files

Describe proposed solution Do not generate an empty file with only this

msgid ""
msgstr ""
"POT-Creation-Date: ***************\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
"Language: en\n"

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context run lingui extract command

jzsn2018 avatar Jun 10 '22 09:06 jzsn2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 10 '22 06:08 stale[bot]