From 085824faf676b14d2ec98b5eece03d50f6460fdd Mon Sep 17 00:00:00 2001 From: Local Dev Date: Thu, 17 Sep 2026 00:36:55 +0200 Subject: [PATCH] feat(sirius-x): language picker on the right with globe icon and flags The native select sat mid-nav next to the font pill and was easy to miss. Replace it with a custom dropdown placed just before the wallet button: globe icon, the current language's flag and native name, a menu of all languages with flags. Flags are tiny inline SVGs rather than emoji (Windows renders flag emoji as bare letters) or a flag CDN (no third-party request from the visitor's browser). Painted on window load so it lands after the deferred nav scripts; keyboard: arrows, Escape, click outside. --- docs/index.html | 2 +- index.html | 2 +- js/i18n.js | 133 +++++++++++++++++++++++++++++++++++++++++------- portal.html | 2 +- tld.html | 2 +- 5 files changed, 118 insertions(+), 23 deletions(-) diff --git a/docs/index.html b/docs/index.html index 8825a6d..754f314 100644 --- a/docs/index.html +++ b/docs/index.html @@ -92,7 +92,7 @@ - + diff --git a/index.html b/index.html index 4dda515..a52cefe 100644 --- a/index.html +++ b/index.html @@ -130,7 +130,7 @@ .verify dd{margin:2px 0 0;font-family:ui-monospace,monospace;font-size:12.5px;word-break:break-all;color:var(--ink)} footer{border-top:1px solid var(--line);padding:2.4rem 0 3.5rem;color:var(--dim);font-size:13px;text-align:center;margin-top:2.5rem} - + diff --git a/js/i18n.js b/js/i18n.js index 93e820b..2b49f32 100644 --- a/js/i18n.js +++ b/js/i18n.js @@ -203,50 +203,145 @@ } // ---------- the dropdown ---------- - var picker = null; + // A custom menu rather than a