This is a simple text translation program that utilizes an API for translation. It allows users to input a text, choose the source and target languages, and get the translated text. Additionally, it saves the original and translated text into a file with a timestamp.
app.mp4
Translates text from one language to another using an API. Supports multiple languages. Saves the original and translated text into a file with a timestamp. Provides a progress bar to indicate translation progress.
Clone the repository:
git clone https://github.com/your-username/your-repository.gitbundle installRun the program:
ruby main.rb-
Enter the text you want to translate when prompted.
-
Choose the source and target languages from the provided options.
-
Wait for the translation to complete.
-
View the translated text on the console.
-
Find the original and translated text saved in a file with a timestamp.
tty-prompt: For interactive prompts. tty-progressbar: For displaying a progress bar. colorize: For adding colors to the console output.
Contributions are welcome! If you find any issues or want to improve the program, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.