https://github.com/norbit4/filetranslator
Tool to translate files with .yml and .yaml extensions
https://github.com/norbit4/filetranslator
api deepl docker java javascript translator yml
Last synced: 2 months ago
JSON representation
Tool to translate files with .yml and .yaml extensions
- Host: GitHub
- URL: https://github.com/norbit4/filetranslator
- Owner: Norbit4
- License: mit
- Created: 2024-01-02T14:00:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T14:09:50.000Z (almost 2 years ago)
- Last Synced: 2025-12-27T22:44:51.856Z (6 months ago)
- Topics: api, deepl, docker, java, javascript, translator, yml
- Language: Java
- Homepage:
- Size: 460 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
File Translator
[](https://app.codacy.com/gh/Norbit4/FileTranslator/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
The File Translator project is a tool created to translate files with .yml and .yaml extensions. The main function of app is to translate the values contained in these files, leaving the keys unchanged. This means that the structure of the file remains unchanged, and only the content is modified.
input:
```yaml
key1: value1
key2: value2
```
output:
```yaml
key1: translated_value1
key2: translated_value2
```
Used Languages and Tools:
Table of contents
- [Run](#run)
- [App view](#view)
- [Example usage](#usage)
- [Tests](#tests)
Run
1. Clone repository
```
git clone https://github.com/Norbit4/FileTranslator
```
2. Create account and get free [DeepL token](https://www.deepl.com/pl/your-account/keys)
3. Copy DeepL token and paste it to docker-compose.yml
4. Start app
```
docker-compose up
```
App view


Example usage
input (EN):
```yaml
offer-command:
no-permission: '&cYou do not have access to this command!'
wrong-price: '&cThe price variable is invalid!'
wrong-item: '&cYou can not offer this item!'
success: '&aYou have successfully offered this item!'
market-gui:
previous-page-icon:
name: '&f&lPrevious Page'
lore:
- ''
- '&eClick to browse!'
next-page-icon:
name: '&f&lNext Page'
lore:
- ''
- '&eClick to browse!'
```
output (PL):
```yaml
offer-command:
no-permission: '&cNie masz dostępu do tego polecenia!'
wrong-price: '&cZmienna ceny jest nieprawidłowa!'
wrong-item: '&cNie możesz zaoferować tego przedmiotu!'
success: '&aPomyślnie zaoferowałeś ten przedmiot!'
market-gui:
previous-page-icon:
name: '&f&lPoprzednia strona'
lore:
- ''
- '&eKliknij, aby przeglądać!'
next-page-icon:
name: '&f&lNastępna strona'
lore:
- ''
- '&eKliknij, aby przeglądać!'
```
Tests
