Skip to main content

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”,”🇹🇼”))

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

If you're not sure about the file name format, learn more about wheel file names.

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.

Release history Release notifications | RSS feed

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

This release

0.0.4 This release

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page