Giter VIP home page Giter VIP logo

translator's Introduction

Translation Tool

Welcome to the Translation Tool repository! This tool is designed to help you translate both text files (.txt) and HTML files (.html) in bulk, all within a single folder. It also includes a glossary manager to maintain consistent translations for specific terms.

Features

  • Batch Translation: Translate all text and HTML files within a specified folder.
  • Glossary Manager: Maintain a glossary of terms to ensure consistent translations.
  • File Type Support: Automatically detects and translates .txt and .html files.
  • Easy Setup: Simple configuration using an .env file.

Installation

Option 1: Download the Latest Release

  1. Download the latest release from the Releases page on GitHub.

  2. Create an .env file in the same directory as the .jar file with the necessary environment variables. This file is required for the tool to function properly.

    Example .env file:

    DEEPL_API_KEY=your_api_key_here
    
  3. Run the tool using the command or just double clicking the file:

    java -jar translation-tool.jar
    or just double click

Option 2: Compile from Source

  1. Clone the repository:

    git clone https://github.com/yourusername/translation-tool.git
    cd translation-tool
  2. Compile the project using Maven:

    mvn clean package
  3. Create an .env file in the root directory with the necessary environment variables. This file is required for the tool to function properly.

    Example .env file:

    API_KEY=your_api_key_here
    
  4. Run the compiled tool using the command, or by simply double clicking it:

    java -jar target/translation-tool.jar

Usage

  1. Place the files you want to translate into an input folder and create an output folder.

  2. In the main menu, choose either translation or glossary creation.

  3. Add any specific terms you want to manage to the glossary, which currently supports the .xlsx file format.

  4. After adding the glossary, simply close the glossary manager. Then in the menu, click translator.

  5. Here, select your desired input/output folders. If you want to use a glossary, make sure to tick the checkbox and provide a source language.

  6. Click translate. Translating into all languages is not supported in glossary mode.

  7. The translated files will be output to the selected output folder.

translator's People

Contributors

dannyjelll avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.