An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

File Translator

[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b8c7865c485b45999aa055ff298bda9b)](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
```

Back to top

App view

![view-1](https://github.com/Norbit4/FileTranslator/assets/46154743/dbfbf44f-0273-4825-86f0-bd604b4f8870)

![view-2](https://github.com/Norbit4/FileTranslator/assets/46154743/e4ecc0fb-e6a0-4b1a-b09a-1b8e0fdf4b11)

Back to top

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ć!'
```

Back to top

Tests

![tests](https://github.com/Norbit4/FileTranslator/assets/46154743/65a6b1ee-29b5-40e6-b8a8-75745ea49de8)

Back to top