ice/public
Claude Code 8b1787ec47 Add comprehensive internationalization (i18n) with Spanish language support
This major feature introduces complete internationalization architecture with Spanish (Mexico) as the first additional language:

## New Features:
- **I18n Architecture**: Complete client-side and server-side internationalization system
- **Spanish (Mexico) Support**: Full es-MX translations for all user-facing text
- **Language Selector**: Dynamic language switching UI component in header
- **API Endpoints**: RESTful endpoints for serving translations (/api/i18n)
- **Progressive Enhancement**: Language detection via Accept-Language header and cookies

## Technical Implementation:
- **Frontend**: Client-side i18n.js with automatic DOM translation and language selector
- **Backend**: Server-side i18n service with locale detection middleware
- **Build Process**: Automated copying of translation files to dist/ directory
- **Responsive Design**: Language selector integrated into header controls layout

## Files Added:
- public/i18n.js - Client-side internationalization library
- src/i18n/index.ts - Server-side i18n service
- src/i18n/locales/en.json - English translations
- src/i18n/locales/es-MX.json - Spanish (Mexico) translations
- src/routes/i18n.ts - API endpoints for translations

## Files Modified:
- package.json - Updated build process to include i18n files
- public/index.html - Added i18n attributes and language selector
- public/app.js - Integrated dynamic translation updates
- src/server.ts - Added locale detection middleware
- src/scss/pages/_index.scss - Language selector styling

This implementation supports easy addition of future languages and maintains backward compatibility while providing a seamless multilingual experience.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 12:25:44 -04:00
..
icons Add Progressive Web App functionality 2025-07-06 00:46:00 -04:00
admin.html Add Progressive Web App functionality 2025-07-06 00:46:00 -04:00
admin.js Fix map display and auto theme detection 2025-07-04 16:36:41 -04:00
app-google.js Create shared utility module to eliminate function duplication 2025-07-04 13:22:17 -04:00
app-mapbox-refactored.js Refactor architecture: Add models/services layer and refactor frontend 2025-07-05 19:21:51 -04:00
app-mapbox.js Fix map display and auto theme detection 2025-07-04 16:36:41 -04:00
app-refactored.js Refactor architecture: Add models/services layer and refactor frontend 2025-07-05 19:21:51 -04:00
app.js Add comprehensive internationalization (i18n) with Spanish language support 2025-07-07 12:25:44 -04:00
browserconfig.xml Add Progressive Web App functionality 2025-07-06 00:46:00 -04:00
favicon.svg Update HTML files to use Bunny.net CDN for static assets 2025-07-03 20:44:16 -04:00
i18n.js Add comprehensive internationalization (i18n) with Spanish language support 2025-07-07 12:25:44 -04:00
index.html Add comprehensive internationalization (i18n) with Spanish language support 2025-07-07 12:25:44 -04:00
manifest.json Add Progressive Web App functionality 2025-07-06 00:46:00 -04:00
map-base.js Refactor architecture: Add models/services layer and refactor frontend 2025-07-05 19:21:51 -04:00
offline.html Add Progressive Web App functionality 2025-07-06 00:46:00 -04:00
privacy.html Apply suggestions from code review 2025-07-06 00:49:25 -04:00
style-backup.css Remove unused Sass/SCSS setup 2025-07-03 21:56:26 -04:00
sw.js Add Progressive Web App functionality 2025-07-06 00:46:00 -04:00
test-refactored.html Refactor architecture: Add models/services layer and refactor frontend 2025-07-05 19:21:51 -04:00
utils.js Create shared utility module to eliminate function duplication 2025-07-04 13:22:17 -04:00