Skip to content

Commit 470e245

Browse files
Added instructions for adding a translated quiz set
1 parent 6d9092b commit 470e245

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

quiz-app/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
These quizzes are the pre- and post-lecture quizzes for the data science curriculum at https://aka.ms/webdev-beginners
44

5+
## Adding a translated quiz set
6+
7+
Add a quiz translation by creating matching quiz structures in the `assets/translations` folders. The canonical quizzes are in `assets/translations/en`. The quizzes are broken into several groupings. Make sure to align the numbering with the proper quiz section. There are 40 quizzes total in this curriculum, with the count starting at 0.
8+
9+
After editing the translations, edit the index.js file in the translation folder to import all the files following the conventions in `en`.
10+
11+
Edit the `index.js` file in `assets/translations` to import the new translated files.
12+
13+
Then, edit the dropdown in `App.vue` in this app to add your language. Match the localized abbreviation to the folder name for your language.
14+
15+
Finally, edit all the quiz links in the translated lessons, if they exist, to include this localization as a query parameter: `?loc=fr` for example.
16+
517
## Run the Quiz App locally
618

719
### Prerequisites

0 commit comments

Comments
 (0)