Files
f1den ada978cd1b Major update and bugfixes
Changelog:
- Fixed critical bugs in saving files (not saving newlines and array like).
- Added newline and whitespace highlighting.
- Added MarkedTodo tab and mark todo button (to mark something for translate later).
- Added Learning AI Suggestions (They work like regular, but AI also reads your saved translations from ru_ru.json and newKeys_ru_ru.json).
2025-08-01 22:30:00 +03:00

2.5 KiB

Translation Comparison and Management Tool

A Flask-based web application for comparing JSON translation files, managing translations, and getting translation suggestions from multiple services.

Features

  • File Comparison:
    • DeepDiff comparison showing detailed changes between JSON files
    • Key-based comparison showing added, removed, and common keys
  • Translation Management:
    • Side-by-side translation interface
    • Undo/redo functionality for translations
    • Bulk save all translations
  • Translation Suggestions:
    • Yandex Translate integration
    • Google Translate integration
    • DeepL Translate integration (Not Implemented Yet)
    • DeepSeek AI suggestions
  • User Experience:
    • Dark/light theme support (WIP)
    • Auto-resizing textareas
    • Keyboard shortcuts (Ctrl+S to save, Ctrl+Z to undo, Ctrl+Y to redo)
    • Copy functionality for quick text transfer
  • Settings (NOT IMPLEMENTED YET):
    • API key configuration
    • Proxy settings for translation services
    • Custom preprompt for AI suggestions

Usage

  1. Place your JSON files in the project root:

    • ru_ru.json (target language)
    • en_us.json (source language)
  2. Run the application:

    python main.py
    
  3. Access the tool in your browser at http://localhost:5000

API Keys Configuration

The tool requires API keys for various translation services. You can configure them:

  1. Through code: Edit the TranslationHelper initialization in main.py
  2. Through .env file Create .env File and paste this DEEPSEEK_API_TOKEN="YOUR_TOKEN_HERE"
  3. Through UI: Use the Settings tab in the web interface (Not Implemented Yet)

*Api token got from deepseek website. login, open f12 and run command JSON.parse(localStorage.getItem("userToken")).value

Used services:

  • DeepSeek API
  • Yandex Translate
  • Google Translate
  • DeepL (not implemented yet)

Keyboard Shortcuts

  • Ctrl+S: Save all translations
  • Ctrl+Z: Undo changes in current textarea
  • Ctrl+Y or Ctrl+Shift+Z: Redo changes in current textarea

Backup System

The application automatically creates backups in the backups folder before each save operation. Files are named with timestamps for easy recovery.

Contributing

Contributions are welcome! Please open an issue or pull request for any improvements or bug fixes.

Credits

xtekky - for dsk lib

alekssamos - for yandexfreetranslate lib

License

MIT License