Skip to content

feat: add language selector with browser detection and custom MainMenu#148

Merged
ZimengXiong merged 1 commit into
ZimengXiong:mainfrom
OhYee:feat/language-selector
Apr 27, 2026
Merged

feat: add language selector with browser detection and custom MainMenu#148
ZimengXiong merged 1 commit into
ZimengXiong:mainfrom
OhYee:feat/language-selector

Conversation

@OhYee
Copy link
Copy Markdown
Contributor

@OhYee OhYee commented Apr 22, 2026

feat: add language selector with browser detection and custom MainMenu

  • Add LanguageSelector component that detects browser language on first
    load and persists the user's choice in localStorage
  • Integrate LanguageSelector into a custom Excalidraw MainMenu so users
    can switch language from the editor toolbar
  • Pass langCode state to to apply the selected language
  • Supported languages are sourced directly from @excalidraw/excalidraw

@OhYee
Copy link
Copy Markdown
Contributor Author

OhYee commented Apr 22, 2026

Split from #134, relative to #146

- Add LanguageSelector component that detects browser language on first
  load and persists the user's choice in localStorage
- Integrate LanguageSelector into a custom Excalidraw MainMenu so users
  can switch language from the editor toolbar
- Pass langCode state to <Excalidraw> to apply the selected language
- Supported languages are sourced directly from @excalidraw/excalidraw

Change-Id: Ib5f2bba72f95a4048395a39a53f24f2a99e46b1c
@ZimengXiong ZimengXiong force-pushed the feat/language-selector branch from 5cbc3ba to 466ec90 Compare April 27, 2026 15:05
@ZimengXiong ZimengXiong merged commit c3beed3 into ZimengXiong:main Apr 27, 2026
5 checks passed
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.

2 participants