Skip to main content

Traductor de más de 50 idiomas

Project description

Introduction

jottranslator is a library that translates text into more than 50 languages.

Installation

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

pip install jotlanguages
pip3 install jotlanguages

Usage

jottranslator 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 jottranslator

translation = jottranslator.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 jottranslator

translation = jottranslator.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

jotlanguages-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.

jotlanguages-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jotlanguages-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 jotlanguages-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8f198bd5173068454bb5abb3b98eb21429bd7a80f889803de9a7d3a87fc7fbf7
MD5 e940dfa301087fbddb8c1142a9d78f78
BLAKE2b-256 bac7c78f5f65401bb9f13e7185b2f00ade6641ddf8c5321b9288e1243ad308c0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jotlanguages-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ff31aab2e3c2fbb834631642a23bbc976381b85e4553e7cf59e6c87405c75c8
MD5 80cc04ef73f6e5247286ecc4b666ebee
BLAKE2b-256 7702cf678b2c7bed8992c83398695a1dfd8ced84bc996a235937ddbb5f975c23

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