Skip to content

Commit

Permalink
feat: export course data
Browse files Browse the repository at this point in the history
  • Loading branch information
kantord committed May 21, 2021
1 parent 4f77f1e commit 691c6e2
Show file tree
Hide file tree
Showing 3 changed files with 291 additions and 0 deletions.
240 changes: 240 additions & 0 deletions apps/web/src/courses/parsig-from-english/challenges/basic-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
{
"id": "45a83b3820cb",
"levels": 2,
"challenges": [
{
"type": "options",
"formInTargetLanguage": "zan nipišt",
"meaningInSourceLanguage": "The woman wrote",
"id": "e8a5d3a3b53e",
"priority": 0,
"group": "76847688dec8"
},
{
"type": "listeningExercise",
"answer": "zan nipišt",
"meaning": "The woman wrote",
"audio": "22a54181db37a7d1f2110d967d09f34e2431851f5676fc8375b6ad3572a32ddb",
"id": "23310a5bbf5c",
"priority": 1,
"group": "76847688dec8"
},
{
"type": "chips",
"translatesToSourceLanguage": false,
"phrase": [
{
"word": "The",
"definition": "no translation"
},
{
"word": "woman",
"definition": "zan"
},
{
"word": "wrote",
"definition": "nipišt"
}
],
"chips": [
"zan",
"nipišt"
],
"solutions": [
[
"zan",
"nipišt"
]
],
"formattedSolution": "zan nipišt",
"id": "b3dc1ac9750e",
"priority": 2,
"group": "76847688dec8"
},
{
"type": "chips",
"translatesToSourceLanguage": true,
"phrase": [
{
"word": "zan",
"definition": "the woman\nwoman"
},
{
"word": "nipišt",
"definition": "wrote"
}
],
"chips": [
"The",
"woman",
"wrote"
],
"solutions": [
[
"The",
"woman",
"wrote"
]
],
"formattedSolution": "The woman wrote",
"id": "d802d11b5ca8",
"priority": 2,
"group": "76847688dec8"
},
{
"type": "options",
"formInTargetLanguage": "mart nipišt",
"meaningInSourceLanguage": "The man wrote",
"id": "235ba6d24d74",
"priority": 0,
"group": "f987a5182e62"
},
{
"type": "listeningExercise",
"answer": "mart nipišt",
"meaning": "The man wrote",
"audio": "e1036a3b0b8771a462f5c4b8d05612dfdf017f9506787e2aab50cf84a7b74bca",
"id": "9e68ad180bca",
"priority": 1,
"group": "f987a5182e62"
},
{
"type": "chips",
"translatesToSourceLanguage": false,
"phrase": [
{
"word": "The",
"definition": "no translation"
},
{
"word": "man",
"definition": "mart"
},
{
"word": "wrote",
"definition": "nipišt"
}
],
"chips": [
"mart",
"nipišt"
],
"solutions": [
[
"mart",
"nipišt"
]
],
"formattedSolution": "mart nipišt",
"id": "7c687459e63f",
"priority": 2,
"group": "f987a5182e62"
},
{
"type": "chips",
"translatesToSourceLanguage": true,
"phrase": [
{
"word": "mart",
"definition": "man\nthe man"
},
{
"word": "nipišt",
"definition": "wrote"
}
],
"chips": [
"The",
"man",
"wrote"
],
"solutions": [
[
"The",
"man",
"wrote"
]
],
"formattedSolution": "The man wrote",
"id": "953c89cf75ad",
"priority": 2,
"group": "f987a5182e62"
},
{
"type": "cards",
"pictures": [
"man1.jpg",
"man2.jpg",
"man3.jpg"
],
"formInTargetLanguage": "mart",
"meaningInSourceLanguage": "man",
"id": "1f75bd5b0d3f",
"priority": 0,
"group": "53568b22a909"
},
{
"type": "shortInput",
"pictures": [
"man1.jpg",
"man2.jpg",
"man3.jpg"
],
"formInTargetLanguage": [
"mart"
],
"phrase": [
{
"word": "man",
"definition": "mart"
}
],
"id": "3f358ce9f3da",
"priority": 1,
"group": "53568b22a909"
},
{
"type": "listeningExercise",
"answer": "mart",
"meaning": "man",
"audio": "05d92166c6f894893d07edca115b8e314f9fb4857c73568a871f2d6285887030",
"id": "01d679f67fa0",
"priority": 1,
"group": "53568b22a909"
},
{
"type": "cards",
"pictures": null,
"formInTargetLanguage": "zan",
"meaningInSourceLanguage": "woman",
"id": "64cf455940f5",
"priority": 0,
"group": "2bc2540ac01c"
},
{
"type": "shortInput",
"pictures": null,
"formInTargetLanguage": [
"zan"
],
"phrase": [
{
"word": "woman",
"definition": "zan"
}
],
"id": "3e2127a2f74a",
"priority": 1,
"group": "2bc2540ac01c"
},
{
"type": "listeningExercise",
"answer": "zan",
"meaning": "woman",
"audio": "f605015fa9eaac8e2a62a8d67e6c461d9cf45c5639e7ad1f35ec15371cbc62de",
"id": "dc9cbaa2dc80",
"priority": 1,
"group": "2bc2540ac01c"
}
]
}
45 changes: 45 additions & 0 deletions apps/web/src/courses/parsig-from-english/courseData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"languageName": "Middle Persian",
"languageCode": "pal",
"specialCharacters": [
"ā",
"ē",
"ī",
"ō",
"ū",
"č",
"š",
""
],
"license": {
"name": {
"short": "CC BY 4.0",
"full": "CC BY 4.0"
},
"link": "https://creativecommons.org/licenses/by/4.0/"
},
"modules": [
{
"title": "Basics",
"skills": [
{
"imageSet": [
"people1",
"woman1",
"man1"
],
"summary": [
"mart",
"zan",
"zan nipišt",
"mart nipišt"
],
"practiceHref": "basic-1",
"id": "45a83b3820cb",
"title": "Basic 1",
"levels": 2
}
]
}
]
}
6 changes: 6 additions & 0 deletions apps/web/src/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
</Translate>
</ButtonLink>

<ButtonLink primary hidden href="course/parsig-from-english">
<Translate key="index.start_parsig_course">
Start learning Middle Persian
</Translate>
</ButtonLink>

<ButtonLink primary href="about">
<Translate key="index.about_librelingo">
About LibreLingo
Expand Down

1 comment on commit 691c6e2

@vercel
Copy link

@vercel vercel bot commented on 691c6e2 May 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.