feat: more currencies, auto-detection, globe-only language toggle
- Add GBP, JPY, RUB, BRL currencies - Auto-detect currency from browser locale (de-CH→CHF, ru→RUB, etc.) - USD as default fallback - Language toggle: globe icon only (compact on mobile), full names in dropdown - Countdown text updates on language switch - CoinGecko proxy supports dynamic currency list
This commit is contained in:
4
i18n.js
4
i18n.js
@@ -376,10 +376,6 @@ var I18n = (function () {
|
||||
|
||||
applyDOM(t);
|
||||
|
||||
// Update toggle label
|
||||
var cur = document.getElementById('langCurrent');
|
||||
if (cur) cur.textContent = languages[lang].name;
|
||||
|
||||
// Update dropdown active state
|
||||
document.querySelectorAll('.lang-option').forEach(function (btn) {
|
||||
btn.classList.toggle('active', btn.getAttribute('data-lang') === lang);
|
||||
|
||||
Reference in New Issue
Block a user