Skip to content

Conversation

@m1ngsama
Copy link
Member

Summary

Add comprehensive internationalization (i18n) support with Simplified Chinese (default) and English translations.

Features

  • ✅ Complete i18n system with persistent language preference
  • ✅ Translation files for Simplified Chinese and English
  • ✅ Language switcher accessible from main menu
  • ✅ All UI elements fully translated:
    • Main menu and navigation
    • Calendar/Events feature
    • Knowledge Base/Docs feature
    • Repair Service feature
    • Website/GitHub links
    • About section
    • Error messages and hints
  • ✅ User language preference saved to ~/.nbtca/language.json
  • ✅ Fixed version display synchronization issue

Changes

New Files

  • src/i18n/index.ts - Core i18n system with configuration management
  • src/i18n/locales/zh.json - Simplified Chinese translations
  • src/i18n/locales/en.json - English translations

Modified Files

  • src/main.ts - Added i18n support for goodbye messages
  • src/core/menu.ts - Added language switcher menu, translated all menu items
  • src/features/calendar.ts - Translated all calendar UI elements
  • src/features/docs.ts - Translated all documentation UI elements
  • src/features/repair.ts - Translated repair service messages
  • src/features/website.ts - Translated website navigation messages
  • src/config/data.ts - Updated version to 1.0.6
  • package.json - Bumped version to 1.0.6

Test Plan

  • Build succeeds without errors
  • Default language is Simplified Chinese
  • Language can be switched to English via menu
  • Language preference persists across sessions
  • All features work in both languages
  • Version display is synchronized

Version

1.0.6

Closes #[issue-number-if-any]

Add comprehensive internationalization support with Simplified Chinese and English translations.

Features:
- i18n system with persistent language preference storage
- Translation files for Chinese (default) and English
- Language switcher in main menu
- All UI elements translated (menu, calendar, docs, repair, website, about)
- User preference saved to ~/.nbtca/language.json

Changes:
- Add src/i18n/ module with translation system
- Add src/i18n/locales/zh.json (Simplified Chinese)
- Add src/i18n/locales/en.json (English)
- Update all feature modules to use translations
- Add language selection menu
- Fix version display synchronization (package.json and APP_INFO)

Version: 1.0.6
@m1ngsama m1ngsama merged commit 70c5a8e into main Dec 10, 2025
2 checks passed
@m1ngsama m1ngsama deleted the feat/i18n-multi-language-support branch December 10, 2025 03:59
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.

2 participants