Skip to content

feat(i18n): add Spanish, German, Portuguese, Chinese, and Japanese translations#20

Merged
openhoat merged 2 commits intomainfrom
worktree-termaid-i18n-languages
Mar 4, 2026
Merged

feat(i18n): add Spanish, German, Portuguese, Chinese, and Japanese translations#20
openhoat merged 2 commits intomainfrom
worktree-termaid-i18n-languages

Conversation

@openhoat
Copy link
Copy Markdown
Owner

@openhoat openhoat commented Mar 4, 2026

Summary

  • Add translation files for 5 new languages: Spanish (es), German (de), Portuguese (pt), Chinese (zh), Japanese (ja)
  • Update i18n.ts to register all 7 supported languages
  • Add language names to config.chatLanguage in all locale files
  • Update LanguageSelector component with all available languages
  • Update ConfigPanel with new language options for AI response language
  • Create TRANSLATIONS.md documentation for community contribution support
  • Add unit tests for i18n configuration and language switching

Supported Languages

Code Language Native Name
en English English
fr French Français
es Spanish Español
de German Deutsch
pt Portuguese Português
zh Chinese (Simplified) 中文
ja Japanese 日本語

Test Plan

  • Run npm run validate - all tests pass
  • Run npm run build - build successful
  • Run unit tests for i18n configuration - 15 tests pass
  • Run unit tests for LanguageSelector - 4 tests pass
  • Verify all 7 languages appear in language selector
  • Verify translations are loaded correctly in UI

Files Changed

New Files

  • src/locales/es.json - Spanish translations
  • src/locales/de.json - German translations
  • src/locales/pt.json - Portuguese translations
  • src/locales/zh.json - Chinese translations
  • src/locales/ja.json - Japanese translations
  • src/i18n.test.ts - i18n configuration tests
  • TRANSLATIONS.md - Community contribution guide

Modified Files

  • src/i18n.ts - Register all 7 languages
  • src/components/LanguageSelector.tsx - Support all languages
  • src/components/LanguageSelector.test.tsx - Test all languages
  • src/components/ConfigPanel.tsx - Extended language options
  • src/locales/en.json - Added language names
  • src/locales/fr.json - Added language names
  • KANBAN.md - Updated task status

Base automatically changed from feat/llm-plugin-system to main March 4, 2026 11:33
openhoat added 2 commits March 4, 2026 12:35
…anslations

- Add translation files for es, de, pt, zh, ja languages
- Update i18n.ts to register all 7 languages
- Add language names to config.chatLanguage in all locale files
- Update LanguageSelector with all available languages
- Update ConfigPanel with new language options
- Create TRANSLATIONS.md documentation for community contributions
- Add i18n.test.ts for language configuration validation
- Update LanguageSelector.test.tsx for all 7 languages
@openhoat openhoat force-pushed the worktree-termaid-i18n-languages branch from c56a20f to 19d946b Compare March 4, 2026 11:35
@openhoat openhoat merged commit 577d6df into main Mar 4, 2026
@openhoat openhoat deleted the worktree-termaid-i18n-languages branch March 4, 2026 13:19
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