-
Notifications
You must be signed in to change notification settings - Fork 19
/
example.json
60 lines (59 loc) · 2.24 KB
/
example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// To go in config.json
"_languagePicker": {
"_isEnabled": true,
"title": "Language selection",
"displayTitle": "Please select a language",
"body": "This course is available in the following languages:",
"_showOnCourseLoad": true,
"_comment": "default class names are: icon-globe, icon-language-1, icon-language-2",
"_languagePickerIconClass": "icon-language-2",
"_restoreStateOnLanguageChange": false,
"_languages": [
{
"_language": "en",
"_direction": "ltr",
"displayName": "English",
"warningTitle": "Change language?",
"warningMessage": "Changing the language will reset course progress.<br><br>Would you like to proceed?",
"_buttons": {
"yes": "Yes",
"no": "No"
}
},
{
"_language": "de",
"_direction": "ltr",
"displayName": "Deutsch",
"warningTitle": "Sprache ändern?",
"warningMessage": "Ändern der Sprache wird den Fortschritt des Kurses zurücksetzen.<br><br>Möchte Sie fortfahren?",
"_buttons": {
"yes": "Ja",
"no": "Nein"
}
},
{
"_language": "fr",
"_direction": "ltr",
"_isDisabled": true,
"displayName": "Français (bientôt disponible)",
"warningTitle": "Modifier la langue?",
"warningMessage": "La modification de la langue va réinitialiser la progression du cours.<br><br>Souhaitez-vous continuer?",
"_buttons": {
"yes": "Oui",
"no": "Non"
}
}
]
}
// to be added to the _extensions object in course.json
"_languagePicker": {
"languageSelector": "Language selector",
"_navOrder": 0,
"_navTooltip": {
"_isEnabled": true,
"text": "Language selector"
},
"_showLabel": true,
"navigationBarLabel" : "Select course language",
"_drawerPosition": "auto"
}