OmegaT is a translation tool used by many translators, and it has a function to call machine translation service APIs to support translation. Several plugins are provided for machine translation services, such as Google Translator and DeepL. I would really like a plugin for kagi translator.
In OmegaT, you translate on a paragraph-by-paragraph basis. The machine translation plugin passes the original paragraph to the machine translation service and then presents the translated paragraph back to the user. You can find more details about the plugin here.
https://omegat.readthedocs.io/en/latest/12.HowToMakeMTConnector/#what-is-mt-connector
I wish I could make it myself, but unfortunately I'm not very familiar with Java, so it's not going to be easy.