Not sure if this is the right place.
We have been using moodle 1.9 extensively for more than 15 years. During this time, we did a number of core patches to make it behave like we needed. One of the things we did was to integrate on-the-fly translations based on deepl. That means, that pages (mainly book and lesson content) are translated when they are displayed (and cached then of course). This has the beauty that translations are done based on the result of any filters that may have been applied to the content (and which in our case may have user-specific results). Also, translations for a specific language are done only when and if someone wants to display it.
Foremost: does something like this already exist in moodle 4.5?
If not (which is my impression), would it be a good idea to implement it as a filter plugin? Way back when in 1.9, I implemented it as a patch to the book and lesson modules. The reason mainly was that the formatting of the translation results should be different depending on the content type. For example, in books, we have the original text and the translation displayed side-by-side, aligned by paragraph. This might not be appropriate for filtered text in other contexts.
Thanks for any advice!
Christoph