Skip to content

Conversation

@HarshVz
Copy link

@HarshVz HarshVz commented Jan 22, 2026

Summary

This PR introduces the initial release of lingodev-cli, a production-grade CLI tool for translating files using the lingo.dev SDK. It implements a full file processing pipeline with smart path handling, format preservation, and persistent configuration management.

Key Features

  • Smart Path Handling: Recursively scans directories or processes single files; supports . for CWD.
  • Format Preservation:
    • .md: Preserves code blocks and structure.
    • .json: Translates values only, preserving keys.
    • .txt: Translates raw text.
  • Configuration Management:
    • Support for global config (~/.lingo-cli/config).
    • Local .env support.
    • New CLI commands: --set-key, --reset-key, --languages.
  • Architecture: Service-based design (CLIService, ConfigService, FileScannerService, TranslationService).

Testing

  • Manual testing of translation flow for .md, .json, and .txt files.
  • Verified configuration priority (Env Var > Local .env > Global Config).
  • Verified --set-key and --reset-key persistence.
  • Verified error handling for invalid paths and missing keys.

Checklist (Must Have)

  • Closes # (Insert Issue Number)
  • Valid title (Conventional Commits)
  • Clean code & Architecture
  • Tests (Unit tests to be added in follow-up)
  • Changeset (Run pnpm new from repo root)

Closes #1761

@HarshVz HarshVz changed the title lingo-dev-cli app deployed feat: add production-grade translation CLI pipeline Jan 22, 2026
@HarshVz
Copy link
Author

HarshVz commented Jan 22, 2026

previeww.mp4

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.

Build Demo Apps, Integrations etc & Win Exclusive Lingo.dev Swag!

1 participant