Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language Dropdown (#9061) #10649

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Link to Issue
Closes: #9061

Description of Changes
Adds language preference dropdown to both desktop and mobile headers. The desktop dropdown is positioned to the left of the UserDropdown, while the mobile implementation adds a new menu item in the user drawer. Language preference is persisted in localStorage following the same pattern as dark mode.

Changes include:

  • New languagePreference.ts helper for managing language settings
  • Desktop header language selector using CWDropdown
  • Mobile header language selector in user drawer
  • Persistent storage of language preference
  • Support for 8 languages with country flags

Test Plan

  • Manually tested language selection in desktop and mobile views
  • Verified persistence of language preference across page reloads
  • Confirmed proper positioning and styling of dropdowns
  • Tested all supported languages appear correctly

Deployment Plan
N/A

Other Considerations
This PR implements subtask 1 of 3 for the international language support feature (#9060).

Link to Devin run: https://app.devin.ai/sessions/f0f186dcf3b04028b45f81fba0c4896f

devin-ai-integration bot and others added 2 commits January 17, 2025 16:10
- Add language selector to desktop and mobile headers
- Implement language preference storage in localStorage
- Add language selection drawer for mobile view
- Style language selector components

Issue: #9061

Co-Authored-By: Dillon Chen <[email protected]>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internationalize Language Selection Button
0 participants