wpilibsuite / frc-docs-translations

Translation Repository for frc-docs
https://docs.wpilib.org
Apache License 2.0
6 stars 10 forks source link

Remove unused assets from Transifex #2

Closed Daltz333 closed 4 years ago

Daltz333 commented 4 years ago

Currently whenever we move or rename articles, it creates duplicates on Transifex. We should be able to do a pull of the transifex documents and see which ones then get used. We'll then run a script to delete the unused assets from transifex.

Daltz333 commented 4 years ago

This will have to stick around for awhile, as we want to preserve translations that users have already created. Transifex gives hints for translating files with the exact same string, so the old files are still useful

AustinShalit commented 4 years ago

It looks the the Transifex API has a “accept_translations” field. Maybe when a file is deleted, we can set that to false to make sure people cannot translate the wrong file?

https://docs.transifex.com/api/resources

AustinShalit commented 4 years ago

Note this is the same as performing these UI steps: https://docs.transifex.com/projects/preventing-resource-edits