How krtk-dev/translators works
Main Components
A. Frontend Layer
• Mobile App (React Native)
• iOS Application
• Android Application
• Web Application (React)
• Shared Components between platforms
B. Core Features Layer
• Translation Services Integration
• Google Translate
• Papago
• Kakao Translate
• History Management
• Card Sequence System
C. State Management Layer
• Context Providers
• TranslateContext
• CardSequenceContext
• HistoryContext
┌─ Client Layer ─────────────────────┐
• ┌─ Web ─────┐ ┌─ Mobile ─────┐ │
• React SPA │ │React Native │ │
• Components │ │iOS & Android │ │
• ┘ └─────────────┘ │
• ┘
• ▼ ▼
┌─ Core Services Layer ─────────────┐
• ┌─ Translation Services ────────┐ │
• Google Translate │ │
• Papago │ │
• Kakao Translate │ │
• ┘ │
• ┘
• ▼ ▼
┌─ State Management Layer ─────────┐
• ┌─ Context Providers ──────────┐ │
• TranslateContext │ │
• CardSequenceContext │ │
• HistoryContext │ │
• ┘ │
• ┘
Important Details to Highlight
A. Shared Logic:
• How src/util and common components are shared
• Common TypeScript types and constants
B. Navigation Flow:
• Navigation structure (RootStackNavigation, HomeDrawerNavigation)
• Screen hierarchy and relationships
C. Testing Infrastructure:
• Jest testing setup
• CI/CD workflow integration
Key Architectural Patterns to Emphasize
• Context-based state management
• Component composition pattern
• Screen-based organization
• Shared utilities and types
• Cross-platform code sharing
Implementation Notes
• The separation between mobile and web implementations
• Common business logic sharing
• Translation service integration points
• State management flow
• Navigation structure