Skip to content

Add Multi-Language Support (i18n) #18

Description

@Mkalbani

Description

Support multiple languages for global reach.

Languages to Support (Phase 1)

  • English (default)
  • Spanish
  • French
  • Arabic
  • Chinese (Simplified)

Acceptance Criteria

  • Add Accept-Language header detection
  • Translate error messages
  • Translate email templates
  • GET /api/v1/translations/:lang endpoint
  • Store user language preference
  • Auto-translate problem/solution content (optional, AI)

Tech Stack

  • nestjs-i18n package
  • JSON translation files per language

Translation File Structure

src/i18n/
├── en/
│   ├── errors.json
│   ├── emails.json
│   └── common.json
├── es/
│   ├── errors.json
│   └── ...
└── ...

Example Usage

// In service
throw new BadRequestException(
  this.i18n.t('errors.SOLUTION_TOO_SHORT')
);

Challenges

  • Managing translation files
  • RTL language support (Arabic)
  • Date/number formatting
  • Content translation (requires AI/human translators)

ETA: 6 hours

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions