Skip to content

Translation of json file from source language to a target langauge using Google translation library in python.

Notifications You must be signed in to change notification settings

codewithmike01/json_file_lang_translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Set up

  • Clone the repository
 git clone https://github.com/Ginohmk/json_file_lang_translator.git
  • Cd into the folder
cd json_file_lang_translator
  • To run test
  python3 -m unittest test.py

Folder structure

.
├── 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

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 <target abbrviation name>.json

About

Translation of json file from source language to a target langauge using Google translation library in python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages