Do not delete the whole screenshots folder, but just delete per language when the screenshots are generated. Generate the data.js file regarding the existing screenshots, to be able to add languages. Also the language will be sorted alphabetically (English still first). And the screenshot will be sorted alphabetically. Update the script to generate screenshot for specific language on demand.
Screenshots viewer
The screenshots in German and French are getting generated on a regular basis, each time there is a sync with Localazy. You can open the page index.html in a browser to see the screenshots in English, and their translations into French and German.
Generate screenshots for other languages
Generating screenshots for other languages can be done locally. Here are the steps to follow:
- Run the script generateAllScreenshots.py with the languages as parameters to generate the screenshots for the new languages. This will not delete the existing screenshots, but will add new ones for the new languages. This will also update the Javascript data. For instance, to generate screenshots for French and Spanish, run the following command in a terminal:
generateAllScreenshots.py fr es
- Open the page
index.htmlin a browser to see the new screenshots.