Skip to content

feat: English/Spanish multilanguage support (issue #3)#33

Open
arnauguadall wants to merge 1 commit into
mainfrom
multilanguage
Open

feat: English/Spanish multilanguage support (issue #3)#33
arnauguadall wants to merge 1 commit into
mainfrom
multilanguage

Conversation

@arnauguadall
Copy link
Copy Markdown
Collaborator

@arnauguadall arnauguadall commented May 25, 2026

Summary

  • i18n infrastructure: installs i18next + react-i18next and adds en.json / es.json locale files covering every screen — chat, hatching wizard, heartbeats, skills, memory, context panels, settings, and runtime diagnostics.
  • Boot-time language detection: reads profile.language on startup; if set to auto, falls back to navigator.language (first 2 chars), then to English if the locale is unsupported.
  • Language selector in Settings → Desktop: dropdown with Auto / English / Español; switching applies instantly with no restart required.
  • AI system prompt injection: HatchingProfile gains a language field; build_system_prompt(language) generates a language-specific instruction so the assistant replies in the user's chosen language.
  • README: new Language support section documents the feature and explains how to add additional locales.

Files changed

Area What changed
azul_desktop/src/lib/i18n.ts New — i18next initialisation
azul_desktop/src/locales/en.json New — English strings
azul_desktop/src/locales/es.json New — Spanish strings
azul_desktop/src/features/settings/SettingsShell.tsx Language selector dropdown
azul_desktop/src/app/DesktopApp.tsx Boot-time language init
All other src/features/** and src/components/** Hardcoded strings → t() calls
azul_backend/azul_brain/api/hatching_store.py language: str = "auto" field
azul_backend/azul_brain/soul/system_prompt.py build_system_prompt(language)
azul_backend/azul_brain/cortex/kernel_setup.py Calls build_system_prompt with profile language
README.md Language support section

- Install i18next + react-i18next; add en.json and es.json locale files covering every screen (chat, hatching wizard, heartbeats, skills, memory, context panels, settings, runtime)
- Detect OS locale at startup via navigator.language with fallback to English; honour saved profile preference over auto-detection
- Add Language selector (Auto / English / Español) to Settings → Desktop tab; language switches instantly without restart
- Backend: add language field to HatchingProfile; convert AZULCLAW_SYSTEM_PROMPT constant to build_system_prompt(language) so AI replies match the selected language
- Document language support and instructions for adding new locales in README
@arnauguadall arnauguadall requested a review from Javierif May 25, 2026 21:58
@arnauguadall arnauguadall requested review from Javierif and removed request for Javierif June 2, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant