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

It can be a good complement to the pycountry library. 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.7.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: translate_by_country-0.0.7.tar.gz
  • Upload date:
  • Size: 8.8 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.7.tar.gz
Algorithm Hash digest
SHA256 1ffa808692b05ef8e042eb4d265b855d7c816e8c2104dbffbbba5eb901fb1adb
MD5 a21a56400a7f73351a4efd4f40ba1af6
BLAKE2b-256 ed86467db58392bcf88bb93e03f195e61a50cc530c30ea34fc2cc653ac76394e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for translate_by_country-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 293d2357850c3496fce269f574786f3a455699d610b36d8428ecac15129a8682
MD5 b3f24c1da07129fa5dd816e31f3379ff
BLAKE2b-256 4c2f887c04c2422f1f05a184cf9c6d0f8516a8190b1e495942cf50cf9aa17851

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