Translate Query Before Consulting

Is it possible to translate a word before doing the queries?

I am creating plugins to search different sites with different languages, the queries should be in the language of the page, so it would be great to make a query with a word or phrase in a main language that was addressed to any translation service returned the translated word or translated phrase and finally did the query on the destination website with the translated results obtained.

I put a graphic example:

It could be something like that, even if it were only to make requests for the same translation, it could be used on all destination web pages with the same language using sets:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Description</key>
    <string>Google Traductor</string>
    <key>EngineUrl</key>
    <string>http://translate.google.com/#auto/es/_agentQuery_</string>

    <!-- Example Query Ttranslated -->
    <key>EngineUrlTranslated</key>
    <string>https://dle.rae.es/_agentQueryTranslated_</string>

    <key>Identifier</key>
    <string>translate.google.com</string>
    <key>Info</key>
    <string>Google Traductor Plugin</string>
    <key>Name</key>
    <string>Google Traductor</string>
    <key>OffsetPerPage</key>
    <integer>1</integer>
    <key>Operators</key>
    <integer>59</integer>
    <key>ParseLinks</key>
    <true />
    <key>ResultsPerPage</key>
    <integer>10</integer>
    <key>Start</key>
    <integer>0</integer>
    <key>Version</key>
    <string>1.0</string>
  </dict>
</plist>

Sorry but no this is not possible. Perhaps in the future it may be but no promises.

Thank you very much for answering, and congratulations for Devonagent’s work, it is a great application.

2 Likes