feat: atalhos de navegação Q/E e correções no i18n

This commit is contained in:
2026-06-03 16:55:01 +01:00
parent 0a4de43635
commit 1930190c8d
10 changed files with 700 additions and 314 deletions

10
fix_i18n_all.cjs Normal file
View File

@@ -0,0 +1,10 @@
const fs = require('fs');
let content = fs.readFileSync('src/lib/i18n.js', 'utf8');
content = content.replace(
/weatherCurrentAvg: "\{current,([\s\S]*?)down: "([^"]+)",\n\}\°C ([^•]+) • ([^\{]+) \{avg\}\°C",/g,
'weatherCurrentAvg: "{current}°C $3 • $4 {avg}°C",\n$1down: "$2",'
);
fs.writeFileSync('src/lib/i18n.js', content);
console.log('Fixed i18n.js syntax errors dynamically.');