-
Bug
-
Resolution: Fixed
-
Minor
-
3.10
-
MOODLE_310_STABLE
-
MOODLE_310_STABLE
-
videojs language doesn't fallback to en when using language not in videojs lang folder
- # Log in as admin
- Install the Lithuanian(lt) language pack (videojs doesn't have lang files for this language )
- Go into a course and create a page
- In Page content click the video link in atto
- Then select Video tab.
- Insert a small video file into the page (.mp4) formats or Youtube link
- Save changes and visit the page
- Switch Moodle language to Lithuanian
- Check the page that contains the videos again
- Syntax error
SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at http://drupal.docker.localhost:8000/lib/requirejs.php/-1/media_videojs/loader.js:1:3642 at mightThrow (http://drupal.docker.localhost:8000/lib/javascript.php/-1/lib/jquery/jquery-3.4.1.js:3557:29) at process (http://drupal.docker.localhost:8000/lib/javascript.php/-1/lib/jquery/jquery-3.4.1.js:3625:12)