
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Overview This package provides a translation service using the facebook/mbart-large-50-many-to-many-mmt model. It supports translating text between multiple languages, including automatic language detection. This is useful for integrating translation capabilities into your applications.
Features
Multi-language translation: Supports 50+ languages.
Automatic language detection: Detects the language of the input text.
Uses facebook/mbart-large-50-many-to-many-mmt model: State-of-the-art multilingual translation model.
Simple API: Easy integration into your Python projects.
Installation
Using Poetry
If you're using Poetry to manage dependencies, follow these steps:
Clone this repository:
git clone https://github.com/manojprabhakar90/translation_new.git
You can directly install the package from pypi through the below code:
Code: pip install translation-new
from translation_new.translator import Translator
translator = Translator()
translated_text = translator.translate("Hello, how are you?", lang="hi")
This package supports translation between the following languages (identified by their ISO codes):
Arabic (ar) Bengali (bn) Chinese (zh) French (fr) German (de) Hindi (hi) Spanish (es) And many more! For a complete list of supported languages, please check the LANGUAGE_CODES in the Translator class.
This project is licensed under the Apache License
FAQs
A python package for Multi Lingual Translation using LLM
We found that translation-new demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.