An AI implemented, unreviewed experimental branch is available at:
https://github.com/ohrner-it/xwiki-contrib-ai-llm/tree/features/LLMAI-233-Search-results-and-RAG-context-are-filled-with-translations-of-the-same-page
It's based on the implementations for LLMAI-174 and LLMAI-171.