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("translate by country","ax"))

Translates text based on country alpha3

from translate_by_country import translate_text_by_alpha3
print(translate_text_by_alpha3("translate by country","aut"))

Translates text based on country code

from translate_by_country import translate_text_by_code
print(translate_text_by_code("translate by country",98))

Translates text based on country name

from translate_by_country import translate_text_by_name
print(translate_text_by_name("translate by country","albania"))

Translates text based on country emoji

from translate_by_country import translate_text_by_emoji
print(translate_text_by_emoji("translate by country",flag_emoji))

If there was any problem, please open an issue for them on github.

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.8.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

translate_by_country-0.0.8-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: translate_by_country-0.0.8.tar.gz
  • Upload date:
  • Size: 8.6 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.8.tar.gz
Algorithm Hash digest
SHA256 9e4d82f90ed1a17af954897ddb8d17df7fd6ddf98f3e7c0aa151376a9b7a263f
MD5 6dc530d6719122ac8d9bac77fc0f188f
BLAKE2b-256 4570a3454876b61115a0334116bf9a54b943d4f35ee33be86fcc51b986afb6ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for translate_by_country-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dd474814fc6c7d91da62d5a95b3381d4eea5811c871a98c04d9d456f4c2c61a6
MD5 549e674451106b82900bdfd395e679cf
BLAKE2b-256 28f81c7bd2bd06159a8bdf29b311ab949e583c420bb2562c8e8a717e6d30ee5f

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