Follow-up to https://github.com/backdrop/backdrop/pull/2397#discussion_r244554774
Because we have both $active_config and $staging_config, and you've passed in $context above... we could delete the out-of-date strings that are no longer used from the locale table when a string changes. For example if the translation for the registration email changes (or the content of the registration email changes), we don't need to be keeping all the old copies of that translated string in the database, just delete them all with that context key.
Recent comments
Thank you, this is a very useful workaround for preparing a clean import list. One concern remains, however: if Simplenews 1.x-1.2.3 still treats blocked user accounts as invalid...
Re-enable Simplenews newsletter subscriptions that had been erroneously disabled
@Amilenkov, I have an idea for your use case where you want to avoid re-subscribing people who have explicitly opted out: Build a view of simplenews subscriptions, and filter by Status (...
Re-enable Simplenews newsletter subscriptions that had been erroneously disabled
"modules to help someone monetise their own website"
How to monetize a Backdrop site