This app translates words into one or all of the following languages:
- Arabic
- German
- English
- Spanish
- French
- Hebrew
- Japanese
- Dutch
- Polish
- Portuguese
- Romanian
- Russian
- Turkish
If a specific language is selected, the program prints the first 5 translations of the word as well as 5 sentences including the word. If "all" is selected, the program prints one translation and sentence from each of the other languages and saves the output to a file.
This app was built as a JetBrains Academy project, and the repository also contains my code snippets from exercises from JetBrains Academy's Python Developer track in the 'Problems' directory.
Clone the repository
git clone [email protected]:valenciarichards/multilingual-online-translator.git
This program uses the requests and Beautiful Soup modules. You can install all necessary modules by running
pip install -r requirements.txt
Navigate to the directory containing "translator.py" ("Multilingual Online Translator"/task/translator/) on the command line, and run
python translator.py <your language> <language you want to translate to, or "all" for all languages> <word to translate>
To translate "hi" from english to french:
To translate "hi" into all available languages:
The source code is released under the MIT License.
Translations obtained from context.reverso.net/translation