-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
Feature Request
Description
Add complete Spanish (Mexican Spanish, es-MX) locale support for the OpenMAIC platform, including:
- UI translations — All user-facing strings translated to Spanish across all 5 i18n modules (common, stage, chat, generation, settings)
- Language selector — Spanish option added to the header language picker
- Browser auto-detection — Automatic detection of Spanish-speaking browsers
- Content generation — Support for generating courses in Spanish (es-MX added to generation pipeline types)
Motivation
OpenMAIC is a powerful educational platform, and adding Spanish support would make it accessible to ~500M+ Spanish speakers worldwide. This is especially relevant for schools and educational institutions in Latin America and Spain.
Implementation
- Follows the existing i18n architecture (TypeScript constants with
useI18nhook) - No new dependencies required
- All existing patterns preserved (same key structure as zh-CN and en-US)
- Voice/TTS/ASR already support Spanish through existing providers (OpenAI, Azure, Qwen, ElevenLabs)
Changes
lib/i18n/types.ts— Added'es-MX'toLocaletypelib/i18n/*.ts— Added*EsMXtranslation constants (5 files)lib/i18n/index.ts— Registered es-MX translationslib/hooks/use-i18n.tsx— Updated detection and validationcomponents/header.tsx— Added ES option to language selectorcomponents/generation/generation-toolbar.tsx— 3-language cycle for content generationapp/page.tsx— Updated form state and browser detectionlib/types/generation.ts— Updated language union typeslib/server/classroom-generation.ts— UpdatednormalizeLanguage()lib/generation/scene-generator.ts— Updated language parameter typeapp/api/generate/scene-content/route.ts— Updated language cast
🤖 AI-assisted (Claude Code)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels