From 470e2457f7d3021722c1f5e936f005e4f2c9a2d3 Mon Sep 17 00:00:00 2001 From: Julia Muiruri Date: Wed, 4 Sep 2024 14:54:56 +0300 Subject: [PATCH] Added instructions for adding a translated quiz set --- quiz-app/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/quiz-app/README.md b/quiz-app/README.md index 5035580d..dc997df6 100644 --- a/quiz-app/README.md +++ b/quiz-app/README.md @@ -2,6 +2,18 @@ These quizzes are the pre- and post-lecture quizzes for the data science curriculum at https://aka.ms/webdev-beginners +## Adding a translated quiz set + +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. + +After editing the translations, edit the index.js file in the translation folder to import all the files following the conventions in `en`. + +Edit the `index.js` file in `assets/translations` to import the new translated files. + +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. + +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. + ## Run the Quiz App locally ### Prerequisites