[assets] Allow to run ./bw-dev collectstatic every time a change occurs in bookwyrm/static.

This commit is contained in:
Fabien Basmaison
2021-04-06 11:54:45 +02:00
parent 62fe2ef600
commit d6ee136c10
3 changed files with 28 additions and 2 deletions

View File

@ -116,6 +116,8 @@ If you edit the CSS or JavaScript, you will need to run Django's `collectstatic`
./bw-dev collectstatic
```
If you have [installed yarn](https://yarnpkg.com/getting-started/install), you can run `yarn watch:static` to automatically run the previous script every time a change occurs in _bookwyrm/static_ directory.
### Working with translations and locale files
Text in the html files are wrapped in translation tags (`{% trans %}` and `{% blocktrans %}`), and Django generates locale files for all the strings in which you can add translations for the text. You can find existing translations in the `locale/` directory.