If a latest translation already exists, but doesn't exist in latest sync, then it should not be served and should not show in latest sync.
Currently this is an issue, if a translation has been removed from the repo's yaml, then the repos translations are synced, and the locale files are generated the deleted yaml will be included.
Open questions:
How will this work with english vs other langauges?
It should work the same with all langauges but will need to see.
Need to handle an entire yaml file being deleted!!! Currently the deleted file will just be written.
This would be good to write tests for.
Requirements
A field should be added to the Translation model called deleted_at which is a DateTime field. It should be able to be blank and editable.
When a sync is made, check if any of the results of filter_latest_translationsdid not exist in the latest sync. If it doesn't exist, then set the deleted_at value to the commit time.
When the latest translation has a value in the deleted_at field it should not be exported when generating the locale files.
Description
If a latest translation already exists, but doesn't exist in latest sync, then it should not be served and should not show in latest sync.
Currently this is an issue, if a translation has been removed from the repo's yaml, then the repos translations are synced, and the locale files are generated the deleted yaml will be included.
Open questions:
Requirements
deleted_at
which is a DateTime field. It should be able to be blank and editable.filter_latest_translations
did not exist in the latest sync. If it doesn't exist, then set thedeleted_at
value to the commit time.deleted_at
field it should not be exported when generating the locale files.