LibreTranslate Tutorial: Full Setup Guide
Watson Tech World
Dive into our detailed tutorial on setting up LibreTranslate, an open-source alternative to Google Translate. This video walks you through the entire process, from setting up a DigitalOcean VPS to installing LibreTranslate, configuring a server, and even creating a website with the service. Learn how to use Python to interact with the LibreTranslate API and perform multiple translations efficiently. Perfect for developers and language enthusiasts looking to host their own translation service.
π Prefer reading step-by-step instructions? Check out the full written guide π https://watsontechworld.com/libretranslate-setup-guide/
- LibreTranslate: https://libretranslate.com/
- LibreTranslateβs GitHub repository: https://github.com/LibreTranslate/LibreTranslate
π» Get started with cloud or VPS hosting with DigitalOcean and receive a $200 credit for 60 days through our link π https://watsontechworld.com/digitalocean
Get my coloring book, Watson the Time-Travelling Dog: Dogs and Dinosaurs Adventure Coloring Book 1 ππ¦π¨π https://watsoncoloringbooks.com/book1-locations/
Join Watson and his friends on an exciting time-travel adventure filled with dinosaurs and fun! Perfect for kids and coloring book enthusiasts alike.
Video Chapters: 00:00 Intro to LibreTranslate 01:46 LibreTranslate GitHub repository 01:55 Setting up a DigitalOcean VPS 06:17 Initial logging into VPS with SSH 08:00 Updating server 09:06 Making a new username 10:57 Reboot #1 11:30 Logging in with new non-root username 12:05 Installing necessary packages for libretranslate 13:53 Installing and setting up libretranslate package 16:39 Running libretranslate command for first time 18:50 Running modified libretranslate command that allows us to access it via the Internet 20:05 Accessing LibreTranslate installation via a web browser 20:20 Testing LibreTranslate installation via a web browser 21:19 Discussing the LibreTranslate API 21:33 Example Python code to test LibreTranslate API for translations 23:46 Opening a Python terminal to test API interactively 24:51 Discussing the Python Code 25:46 Start setting up a website 27:00 Installing and setting up Nginx server 31:56 Setting up Cloudflare A record 33:05 Running libretranslate command again 34:28 LibreTranslate website is finally up and testing it 35:38 Closing server and setting up server so the IP address isn't directly accessible for LibreTranslate 36:24 LibreTranslate is now only accessible via the domain and not via a direct IP address in the browser 37:38 Setting up Systemd Service so website can always be up 41:18 Reboot #2 42:16 Website setup complete 42:26 Testing translations again on website to make sure it works 43:00 Continuing with updated Python code to test the API with the website 45:35 Running code in Python terminal 46:14 Testing website translations with API in different languages 49:35 Python code to translate multiple sentences at one time 52:00 Installing and using ipython3 for better interactive Python 52:35 Continuing Python code to translate multiple sentences at one time 54:20 Using pandas with Python code for more powerful way to use API to later use with CSV files 55:39 Running code using pandas and writing to a CSV file 56:22 Correcting my mistake of Python running code on the server instead of on my local computer 57:26 Running code correctly on my local computer 58:56 CSV file with original sentences and translations 01:00:12 Comparing LibreTranslate translations with Google Translate translations 01:02:26 Discussing Google Translate vs LibreTranslate again 01:03:02 Deleting DigitalOcean Droplet 01:04:25 Conclusion
#LibreTranslate #OpenSource #TranslationAPI #DigitalOcean #PythonTutorial #Python #OpenSourceTranslation #VPS #PythonAPI #language #languages #translation
2025-04-07
0.0 LBC
None
455859755 Bytes