Recall & Review
beginner
What is the main purpose of a language switching UI in a web app?
It allows users to change the website's language easily, improving accessibility and user experience for people who speak different languages.
Click to reveal answer
intermediate
In Next.js, which feature helps manage multiple languages for a website?
Next.js supports internationalized routing, which lets you define locales and automatically handle language-specific URLs.
Click to reveal answer
beginner
Why should language switch buttons use semantic HTML and ARIA labels?
Semantic HTML and ARIA labels make the buttons accessible to screen readers and assistive technologies, helping users with disabilities navigate the site.
Click to reveal answer
intermediate
How can you remember the user's language choice in a Next.js app?
You can store the language choice in cookies or localStorage, so the app remembers the preference on future visits.
Click to reveal answer
beginner
What is a common UI pattern for language switching on mobile devices?
A dropdown menu or a modal with language options is common, ensuring it is easy to tap and navigate on small screens.
Click to reveal answer
Which Next.js feature helps create URLs for different languages automatically?
✗ Incorrect
Internationalized routing lets Next.js handle language-specific URLs automatically.
What HTML element is best for a language switch button to ensure accessibility?
✗ Incorrect
Where can you store the user's language preference to remember it later?
✗ Incorrect
localStorage or cookies can save user preferences across sessions.
Which attribute improves screen reader support for language switch buttons?
✗ Incorrect
aria-label provides descriptive text for screen readers.
What is a good UI pattern for language switching on small screens?
✗ Incorrect
Dropdown menus save space and are easy to use on mobile devices.
Explain how you would implement a language switching UI in a Next.js app.
Think about routing, UI elements, accessibility, and remembering user choice.
You got /5 concepts.
Describe why accessibility is important in language switching UI and how to achieve it.
Focus on screen readers, keyboard users, and visual clarity.
You got /5 concepts.