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.
- 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.
-
Download the latest release from the Releases page on GitHub.
-
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
-
Run the tool using the command or just double clicking the file:
java -jar translation-tool.jar or just double click
-
Clone the repository:
git clone https://github.com/yourusername/translation-tool.git cd translation-tool
-
Compile the project using Maven:
mvn clean package
-
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
-
Run the compiled tool using the command, or by simply double clicking it:
java -jar target/translation-tool.jar
-
Place the files you want to translate into an input folder and create an output folder.
-
In the main menu, choose either translation or glossary creation.
-
Add any specific terms you want to manage to the glossary, which currently supports the
.xlsx
file format. -
After adding the glossary, simply close the glossary manager. Then in the menu, click translator.
-
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.
-
Click translate. Translating into all languages is not supported in glossary mode.
-
The translated files will be output to the selected
output
folder.