Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codewithmike01/json_file_lang_translator
Translation of json file from source language to a target langauge using Google translation library in python.
https://github.com/codewithmike01/json_file_lang_translator
python3 unittests
Last synced: 8 days ago
JSON representation
Translation of json file from source language to a target langauge using Google translation library in python.
- Host: GitHub
- URL: https://github.com/codewithmike01/json_file_lang_translator
- Owner: codewithmike01
- Created: 2023-05-09T15:04:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-12T11:55:51.000Z (over 1 year ago)
- Last Synced: 2024-10-10T09:41:15.701Z (29 days ago)
- Topics: python3, unittests
- Language: Python
- Homepage:
- Size: 65.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Json File Translator from soure to target language
Translation of json file from source language to a target langauge
using Google deep translation library in python.## Preview
![image](https://github.com/Ginohmk/json_file_lang_translator/assets/58771507/af014bf1-4fea-4904-945a-e20909992760)
## Set up
- Clone the repository
```bash
git clone https://github.com/Ginohmk/json_file_lang_translator.git
```- Cd into the folder
```bash
cd json_file_lang_translator```
- To run test
```bash
python3 -m unittest test.py
```## Folder structure
```bash
.
├── data (holds json file)
│ ├── source.json
│
├── lib
│ ├── __pycache__.py
│ ├── translator.py
│
├── app.py
├── mock (For testing purpose)
│ ├── source.json
├── test.py
└── README.md
```## How to use
- You need to place your source json file inside of data folder and name it source.json
- Run the program
```bash
python3 app.py```
- Follow thw prompt
- Enter the abbreviation of the source language (For English en )
- Enter the abbreviation of the target language (For Spanish es)- Allow it to run the program, your output target json translation will be in the data folder, with the `bash
.json`