From aea0426529c68e5484b5652739298bbb4746bacd Mon Sep 17 00:00:00 2001 From: Claude Code Date: Mon, 7 Jul 2025 19:10:02 -0400 Subject: [PATCH] Fix i18n for form placeholders and make snowflake emoji clickable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add data-i18n-placeholder support to i18n.js for dynamic placeholder translation - Update form inputs with proper i18n attributes for placeholders and labels - Make snowflake emoji (❄️) clickable on all pages to return to homepage - Remove snowflake from translation strings since it's now a separate element - Add i18n support to README features list 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- README.md | 1 + public/admin.html | 2 +- public/i18n.js | 7 +++++ public/index.html | 51 ++++++++++++++++++------------------- public/privacy.html | 2 +- src/i18n/locales/en.json | 4 +-- src/i18n/locales/es-MX.json | 4 +-- src/server.ts | 2 +- 8 files changed, 40 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 7959b3c..3c49d87 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ A community-driven web application for tracking winter road conditions and icy h - ♿ **Accessibility First** - Progressive enhancement with noscript fallbacks - 🔒 **Privacy-Focused** - No user tracking, community safety oriented - 🛡️ **Enhanced Security** - Coordinate validation, rate limiting, and content filtering +- 🌐 **Internationalization** - Full i18n support with English and Spanish (Mexico) languages ## Quick Start diff --git a/public/admin.html b/public/admin.html index 55d2d6c..c4fe7ea 100644 --- a/public/admin.html +++ b/public/admin.html @@ -57,7 +57,7 @@
-

❄️ Great Lakes Ice Report Admin Panel

+

❄️ Great Lakes Ice Report Admin Panel

@@ -106,7 +106,7 @@ placeholder="Enter address, intersection (e.g., Main St & Second St, City), or l
-

Current Reports

+

Current Reports

@@ -115,15 +115,15 @@ placeholder="Enter address, intersection (e.g., Main St & Second St, City), or l
@@ -131,31 +131,31 @@ placeholder="Enter address, intersection (e.g., Main St & Second St, City), or l
-

🔴 Red markers: Icy conditions reported

-

⏰ Auto-cleanup: Reports disappear after 48 hours

-

Loading locations...

+

🔴 Red markers: Icy conditions reported

+

⏰ Auto-cleanup: Reports disappear after 48 hours

+

Loading locations...

diff --git a/public/privacy.html b/public/privacy.html index 1c82a0b..39544c3 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -41,7 +41,7 @@
-

❄️ Privacy Policy

+

❄️ Privacy Policy

Great Lakes Ice Report