diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-08 03:11:22 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-08 03:11:22 +0200 |
| commit | 6a5997655d9f2fa583bf707a5611bbb0c0f109fc (patch) | |
| tree | 6e3e34e1d2b402850f870e54d60c9fd1110ab206 /packages/meshbay-hub/src/meshbay_hub/static/app.js | |
| parent | 436aa6d01ea3a9d2a6cd5d04b284c48db6d6f90c (diff) | |
| download | meshbay-6a5997655d9f2fa583bf707a5611bbb0c0f109fc.tar.gz | |
fix(hub): drop the flag emoji from the language menu
The flags were regional-indicator pairs, which Windows has never shipped a
glyph for: Segoe UI Emoji renders the pair as its two letters, so the menu
read "GB", "FR", "NL" down the left-hand side instead of a flag. It only ever
looked right on a system with an emoji font that draws them, such as GNOME's.
Names only, rather than vendoring ten flag images. A flag is a country and
not a language anyway — none of them is the right answer for "Português
(Brasil)" — and each name is already written in its own language, which is
the self-identifying signal the flag was standing in for.
The `flag` field is removed from LOCALES rather than left unread; app.js's
menu was its only consumer. The submenu keeps its indent from
.user-menu-sub's padding, not from the icon box that is now gone.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V8EDjk6pkYZrCbo63m2x87
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/app.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/app.js b/packages/meshbay-hub/src/meshbay_hub/static/app.js index aa0034c..9f925c3 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/app.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/app.js @@ -109,7 +109,7 @@ function UserMenu({ user, theme, onThemeChange, onLogout }) { ${langOpen && LOCALES.map(l => html` <button key=${l.code} class="user-menu-item user-menu-sub" onClick=${() => { setLocale(l.code); window.location.reload(); }}> - <span class="umi-icon">${l.flag}</span> ${l.name} + ${l.name} ${getLocale() === l.code && html`<${Icon} name="check" cls="umi-check" />`} </button> |