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:
Alexander Schmidt
2026-03-25 18:25:27 +01:00
parent e7f3451f82
commit bde0e6f7e4
6 changed files with 44 additions and 11 deletions

View File

@@ -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);