Skip to content

A Python 3 programme that translates text from a chosen '.txt' file into an input language and saves output in a new file.

Notifications You must be signed in to change notification settings

mpbasto/translate-this-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Translating a .txt file using Python 3 📝

This programme translates from test.txt and outputs result into a new file using the translate package. Translate is a simple but powerful translation tool written in python with with support for multiple translation providers.

To translate into a different language:

  • Change TO_LANGUAGE constant to desired language, which has to be in the format of ISO 639-1 code (available language codes can be found here).

To change path of file to be translated:

  • Change FROM_FILEPATH constant to chosen filepath.

To change destination of the translation text and its name:

  • Change TO_FILEPATH constant to chosen directory and/or name.

About

A Python 3 programme that translates text from a chosen '.txt' file into an input language and saves output in a new file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages