Quite often you have to use the built-in translation function in macOS Monterey, convenient, it works in almost all applications.
If there are ideas, how to implement the translation of the selected line from the source language, which is set explicitly to another, which is also set?
The source language must be set because sometimes there are abbreviations in the text, and the engine cannot determine the language of the selected line or sentence.