I’ve developed a lightweight Translation Class to integrate with TranslatePress and other translation plugins for use with our proprietary plugin. Note: This solution is not recommended for production use, as any updates to TranslatePress or other plugins could potentially break the functionality. The class works by directly manipulating the database, which increases the risk of compatibility issues.
Here’s a snippet of the code:
https://pastebin.com/raw/5dYtVcW4
I hope this helps