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
I recently did this for my website and it increased my PageSpeed score significantly. I just installed and configured the following modules: Alt/Title Default (to set default...
How to Improve SEO Performance in Backdrop CMS
Welcome to Backdrop CMS! To start, I recommend two basic modules: https://backdropcms.org/project/seo_meta and https://backdropcms.org/project/easy_xmlsitemap. I hope they are...
How to Improve SEO Performance in Backdrop CMS
Thank you very, very much :)
Autocomplete Deluxe - best D7 pick autocomplete taging