Commit 8d54de0c authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

preview page now uses the current language for H5P exercises instead of the...

preview page now uses the current language for H5P exercises instead of the browser default language
parent 9d01e86f
{
"name": "mc_frontend",
"version": "1.0.8",
"version": "1.0.9",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
......
......@@ -53,7 +53,7 @@ export class PreviewPage implements OnDestroy {
JSON.stringify(this.currentSolutions.map(x => this.corpusService.annisResponse.solutions.indexOf(x))) : '';
// this will be called via GET request from the h5p standalone javascript library
const url: string = HelperService.config['backendBaseUrl'] + HelperService.config['backendApiH5pPath'] + '?' + 'eid='
+ this.corpusService.annisResponse.exercise_id + '&lang=' + this.translateService.getBrowserLang() + solutionIndicesString;
+ this.corpusService.annisResponse.exercise_id + '&lang=' + this.translateService.currentLang + solutionIndicesString;
window.localStorage.setItem(HelperService.config['localStorageKeyH5P'], url);
const exerciseTypePath: string = this.corpusService.exercise.type === ExerciseType.markWords ? 'mark_words' : 'drag_text';
this.exerciseService.initH5P(exerciseTypePath);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment