Overview of the Issue
In LearnPress plugin, certain strings, particularly those originating from JavaScript files, are not being translated on the frontend, despite being translated in String Translation. These is particularly the case for those strings in Quizzes.
This is a current known WPML limitation as explained here.
Workaround
This issue is fixed in WPML 4.9.0. Updating solves it on your site, so you only need this workaround if you can’t update yet.
Since WPML 4.9.0, you can scan JavaScript strings after activating the Detect strings in JavaScript files feature. Then, you can translate them in “Other strings” section of the Translation Management Dashboard.