Language Change only works in Edit Mode

Language Change only works in Edit Mode

by Si Mi -
Number of replies: 1

Hello,
I am trying to integrate multiple languages for a learning platform. For this end we have written the translation in JavaScript and inserted it as source code in the text and media area. It works automatically when the edit mode is switched on, but not when the edit mode is switched off.  

How can we make it work not only in edit mode?
We are using Moodle version 4.5.1

Thanks in advance for the help!

Average of ratings: -