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")) # Översätt efter land

Translates text based on country alpha3

from translate_by_country import translate_text_by_alpha3
print(translate_text_by_alpha3("translate by country","aut")) # nach Land übersetzt

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")) # Përkthejeni sipas vendit

Translates text based on country emoji

from translate_by_country import translate_text_by_name
print(translate_text_by_emoji("translate by country","🇹🇼")) # 按国家翻译

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

Uploaded Source

Built Distribution

translate_by_country-0.0.6-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: translate_by_country-0.0.6.tar.gz
  • Upload date:
  • Size: 8.9 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.6.tar.gz
Algorithm Hash digest
SHA256 807f14bcd729a4d803fa25e40d4eb63ca92cc0142736b06a78a6a5b99a58783c
MD5 dc9793887626caedf25dd75e8bd4ffc3
BLAKE2b-256 e513e18f22f61bac506d29a0863bc3760fb6ce6e1cbe74a592f7b66df75b0cf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for translate_by_country-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 83eda3a374204e68d2d909937171273ded366cf11fba5a103105b0f1482c9c02
MD5 310d7b9f1840d5f5183c77c1149dc9cd
BLAKE2b-256 0caeb9b7f6cacc4640190c7e356743a985ebefed6663827f19b228344a627efa

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