DeeplxFile  by infrost

File translation tool using Deeplx and Playwright

Created 1 year ago
990 stars

Top 37.6% on SourcePulse

GitHubView on GitHub
Project Summary

DeeplxFile is a cross-platform file translation tool designed for users needing to translate complex or large documents, particularly Excel files, which are often poorly supported or costly with other services. It leverages DeepL for high-quality translations and offers multiple modes, including a Playwright-based approach for enhanced compatibility and unlimited text length, addressing limitations of traditional translation methods.

How It Works

The tool offers three primary translation modes. The "Playwright" mode uses Microsoft's Playwright to simulate browser interactions, enabling robust translation of large texts and avoiding "frequent request" errors common with direct API calls. This mode offers strong compatibility and no apparent text length limits, though it consumes more system resources. A "Direct Connect" mode is also available, which is more resource-efficient but prone to "frequent request" rejections from DeepL servers. The project also supports PDF translation to editable .docx via a separate server component.

Quick Start & Requirements

  • Windows: Download DeeplxFile_setup_windows_Full.exe for a stable Playwright experience with bundled WebKit, or Lite version which uses the system's Edge browser (experimental).
  • macOS: Requires Edge browser installed. Run ./deeplxfile from the terminal after extracting.
  • Source: python deeplxfile_gui.py. For Playwright mode, download playwright-webkit to ./Lib/webkit or specify a path.
  • Dependencies: Python, Playwright (webkit/edge browser).
  • Docs: DeeplxFile Releases

Highlighted Details

  • Supports translation of Word, Excel, and PowerPoint files.
  • Handles complex formulas and citations accurately, outperforming Google Translate in some cases.
  • Offers LLM integration for context-aware, style-specific translations (e.g., "formal business letter").
  • No file size limits for translations.

Maintenance & Community

The project has seen regular updates, with recent versions (v0.5.0+) introducing GUI, Playwright mode, and expanded file format support. Specific community links (Discord/Slack) are not provided in the README.

Licensing & Compatibility

The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The Playwright mode, while robust, can be slower and more resource-intensive than direct methods. The "Lite" Windows version's reliance on Edge for Playwright is still under testing. The "Direct Connect" mode is noted as having low usability due to frequent request rejections. PDF translation requires a separate server download and execution.

Health Check
Last Commit

8 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
13 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.