Skip to main content

Traductor de más de 50 idiomas

Project description

Introduction

jot-translator is a library that translates text into more than 50 languages.

Installation

To install the library, use one of the following commands:

pip install jot-translator
pip3 install jot-translator

Usage

jot-translator provides a specific function for each language. To use them, you must use the abbreviations listed below. In any of the functions, we write our text inside the parentheses and specify lang (the language the text is written in), separating them with a comma. The text must be a string and lang must be the string code of the source language. For example:

import jot_translator

translation = jot_translator.es("hello", lang="en") # "es" is the abbreviation for Spanish and "en" for English

print(translation)

The output of the code would be the Spanish word: hola.

Another example:

import jot_translator

# Note: Remember to use the imported module name
translation = jot_translator.en("Me encantan las mates", lang="es")

print(translation)

The output of the program is: I love maths.

Abbreviations

The available abbreviations are:

Punjabi: pa
Catalán: ca
Chino Mandarín: zh
Inglés: en
Hindi: hi
Spanish: es
Francés: fr
Árabe: ar
Bengalí: bn
Portugués: pt
Ruso: ru
Urdu: ur
Indonesio: id
Alemán: de
Japonés: ja
Maratí: mr
Telugu: te
Turco: tr
Tamil: ta
Vietnamita: vi
Tagalo: tl
Coreano: ko
Persa: fa
Hausa: ha
Suajili: sw
Javanés: jv
Italiano: it
Canarés: kn
Guyaratí: gu
Tailandés: th
Amhárico: am
Oromo: om
Pashto: ps
Malabar: ml
Polaco: pl
Ucraniano: uk
Uzbeko: uz
Sindhi: sd
Yoruba: yo
Maithili: mai
Birmano: my
Azerbaiyano: az
Nigerian Pidgin: pcm
Rumano: ro
Kurdo: ku
Neerlandés: nl
Sondanés: su
Jemer: km
Cingalés: si
Panyabí Occid: pnb
Gallego: gl

Author

Jotpartap Singh, known on GitHub as Jotsisi.

Other Libraries of the Author

jotprint: For easier and customized printing.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jot_translator-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jot_translator-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file jot_translator-0.1.0.tar.gz.

File metadata

  • Download URL: jot_translator-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for jot_translator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6c4ed401c614545995d4335543fa8b8f8d7600114bb982ce6d32cface8f1d1ff
MD5 459ede9577c89e0416544ebef5e8cf18
BLAKE2b-256 cfd0587772f64aebe39559536e823bdebbc60fd907f2099b2cb84879b27c7d05

See more details on using hashes here.

File details

Details for the file jot_translator-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jot_translator-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for jot_translator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9525c02572e6eb4f51790f058d9bb65be868304d4e5159ef3b366b2e2882835e
MD5 4113e798b92aab0be87e335923b62faa
BLAKE2b-256 26594abab55d5c65f82865942513822fdb44515c68e61bcf3cc2466e869b8b8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page