Skip to content

A Streamlit-based Google Translator clone that supports efficient, asynchronous translations of large text inputs. The app breaks down lengthy text into batches, providing real-time progress updates for smooth user experience. Hosted on Streamlit, TranslateNexa is designed for fast, multi-language translations accessible to everyone.

License

Notifications You must be signed in to change notification settings

MunjPatel/TranslateNexa

Repository files navigation

TranslateNexa: Google Translator Clone

TranslateNexa is a Streamlit-based application that offers asynchronous and efficient translations using Google's translation service. The app is capable of handling large text inputs by breaking them down into manageable batches, providing real-time progress updates, and offering multiple language translations simultaneously.

Features

  • Asynchronous Translation: Efficiently handles large inputs with non-blocking requests.
  • Batch Processing: Splits text into batches to avoid payload limits, ensuring successful translations even for lengthy inputs.
  • Progress Tracking: Displays real-time translation progress, speed, and statistics for a better user experience.
  • Clear Input: Reset the input text and language selections with a single click.

Access the Application

TranslateNexa is hosted on Streamlit Community Cloud and can be accessed directly in production at:
TranslateNexa on Streamlit

Running Locally

If you wish to run the app locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/MunjPatel/google_translator.git
  2. Go to the current directory:
    cd google_translator
  3. Install the required dependencies:
    pip install -r requirements.txt
  4. Run the Streamlit app:
    streamlit run async_translator.py

How It Works

Diagram

Translation Accuracy

Although this method shows impressive capabilities in terms of accuracy, speed and handling complex and large text inputs effectively, by large the overall accuracy of translations can still vary depending on the complexity of the text and the language pair. It is important to note that machine translation is not flawless and may struggle with idiomatic expressions, cultural nuances, or context-specific meanings. I would recommend using this tool for general purposes and not for translations that require a high level of precision.

Learn More

For a step-by-step code explanation of TranslateNexa, check out my Medium article: TranslateNexa — A Streamlined Solution for Fast, Large-Scale Multilingual Translations.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Streamlit-based Google Translator clone that supports efficient, asynchronous translations of large text inputs. The app breaks down lengthy text into batches, providing real-time progress updates for smooth user experience. Hosted on Streamlit, TranslateNexa is designed for fast, multi-language translations accessible to everyone.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages