Extraction broken for projects without JS
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 26
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
The extract command assumes makemessages will produce a djangojs.po. However, if the project does not include any JavaScript files, djangojs.po will not be created. This causes the extract command to fail when it attempts to rename the non-existent file.
Update the command to only work with files that exist.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the extract command and its use of makemessages, then inspect the rename step for djangojs.po. Reproduce extraction in a project without JavaScript files and verify that the command skips missing files while still handling files that exist.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- cli, localization
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100