Skip to main content

A library to translate text by country information

Project description

With this library, you can translate the text without choosing the language and with the characteristics of the countries

installation:

pip install translate-by-country

Usage:

Translates text based on country alpha2

from translate_by_country import translate_text_by_alpha2

print(translate_text_by_alpha2(“hello world”,”ax”)) Translates text based on country alpha3

from translate_by_country import translate_text_by_alpha3 print(translate_text_by_alpha3(“hello world”,”aut”))

Translates text based on country code

from translate_by_country import translate_text_by_code print(translate_text_by_code(“hello world”,98))

Translates text based on country name

from translate_by_country import translate_text_by_name print(translate_text_by_name(“hello world”,”albania”))

Translates text based on country emoji

from translate_by_country import translate_text_by_name print(translate_text_by_emoji(“hello world”,”🇹🇼”))

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

translate_by_country-0.0.4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

translate_by_country-0.0.4-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file translate_by_country-0.0.4.tar.gz.

File metadata

  • Download URL: translate_by_country-0.0.4.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.4

File hashes

Hashes for translate_by_country-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9a30a6346152a83a7e4f6bbeee489deb6456a5f38b8c241c56299304f482af30
MD5 3c1b6f90dfbee68da6053ca1a5a0880d
BLAKE2b-256 b24dfdf1e47e3277befccce9986f238abaf2bfcda7d025d82e009ebe118462c0

See more details on using hashes here.

File details

Details for the file translate_by_country-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for translate_by_country-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c5b2e46fecde0ab426bdb0f30d52d4964e51102d0b711bd6da43ab9be582fcbe
MD5 9b97e16839194cbf25785026ffb4135f
BLAKE2b-256 f1d4fb5d998b02b768f10c422864b9cb01725cce96985da0206b4cb72a992638

See more details on using hashes here.

Supported by

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