AI-For-Beginners/translations/pcm/etc/quiz-app
localizeflow[bot] 22b9d24a81 chore(i18n): sync translations with latest source changes (chunk 1/1, 201 changes) 2026-01-30 02:58:31 +00:00
..
README.md chore(i18n): sync translations with latest source changes (chunk 1/1, 201 changes) 2026-01-30 02:58:31 +00:00

README.md

Quizzes

Dis quizzes na di pre- and post-lecture quizzes for di AI curriculum wey dey for https://aka.ms/ai-beginners

How to add quiz wey dem don translate

To add quiz wey dem don translate, you go create di same quiz structure for di assets/translations folders. Di original quizzes dey inside assets/translations/en. Di quizzes dey divide into different group by lesson. Make sure say di numbering dey match di correct quiz section. Dis curriculum get 40 quizzes in total, and di count dey start from 0.

After you don edit di translations, edit di index.js file wey dey di translation folder to import all di files wey follow di way dem do am for en.

Edit di index.js file wey dey assets/translations to import di new translated files.

Then, edit di dropdown wey dey App.vue for dis app to add your language. Make sure say di localized abbreviation dey match di folder name for your language.

Finally, edit all di quiz links wey dey di translated lessons, if dem dey, to include dis localization as query parameter: ?loc=fr for example.

Project setup

npm install

How to compile and hot-reload for development

npm run serve

How to compile and minify for production

npm run build

How to lint and fix files

npm run lint

How to customize configuration

Check Configuration Reference.

Credits: Big thanks to di original version of dis quiz app: https://github.com/arpan45/simple-quiz-vue

How to deploy to Azure

Dis na step-by-step guide to help you start:

  1. Fork di GitHub Repository Make sure say your static web app code dey inside your GitHub repository. Fork dis repository.

  2. Create Azure Static Web App

  • Create Azure account
  • Go di Azure portal
  • Click “Create a resource” and search for “Static Web App”.
  • Click “Create”.
  1. Configure di Static Web App
  • Basics: Subscription: Choose your Azure subscription.

  • Resource Group: Create new resource group or use di one wey you don already get.

  • Name: Give name for your static web app.

  • Region: Choose di region wey dey near your users.

  • Deployment Details:

  • Source: Choose “GitHub”.

  • GitHub Account: Allow Azure to access your GitHub account.

  • Organization: Choose your GitHub organization.

  • Repository: Pick di repository wey get your static web app.

  • Branch: Choose di branch wey you wan deploy from.

  • Build Details:

  • Build Presets: Pick di framework wey your app dey use (e.g., React, Angular, Vue, etc.).

  • App Location: Show di folder wey get your app code (e.g., / if e dey for root).

  • API Location: If you get API, show where e dey (optional).

  • Output Location: Show di folder wey di build output dey (e.g., build or dist).

  1. Review and Create Check your settings and click “Create”. Azure go set up di resources wey you need and go create GitHub Actions workflow for your repository.

  2. GitHub Actions Workflow Azure go automatically create GitHub Actions workflow file for your repository (.github/workflows/azure-static-web-apps-.yml). Dis workflow go handle di build and deployment process.

  3. Monitor di Deployment Go di “Actions” tab for your GitHub repository. You go see workflow wey dey run. Dis workflow go build and deploy your static web app to Azure. Once di workflow finish, your app go dey live for di Azure URL wey dem give you.

Example Workflow File

Dis na example of how di GitHub Actions workflow file fit look like: name: Azure Static Web Apps CI/CD

on:
  push:
    branches:
      - main
  pull_request:
    types: [opened, synchronize, reopened, closed]
    branches:
      - main

jobs:
  build_and_deploy_job:
    runs-on: ubuntu-latest
    name: Build and Deploy Job
    steps:
      - uses: actions/checkout@v2
      - name: Build And Deploy
        id: builddeploy
        uses: Azure/static-web-apps-deploy@v1
        with:
          azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
          repo_token: ${{ secrets.GITHUB_TOKEN }}
          action: "upload"
          app_location: "etc/quiz-app # App source code path"
          api_location: ""API source code path optional
          output_location: "dist" #Built app content directory - optional

Extra Resources


Disclaimer:
Dis dokyument don use AI translation service Co-op Translator do di translation. Even as we dey try make am accurate, abeg sabi say automated translations fit get mistake or no dey correct well. Di original dokyument for im native language na di main source wey you go trust. For important information, e good make professional human translation dey use. We no go fit take blame for any misunderstanding or wrong interpretation wey fit happen because you use dis translation.