translate-by-country
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.
Release files for translate-by-country 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| translate_by_country-0.0.8.tar.gz | 8.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| translate_by_country-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.4 kB
Release files / translate_by_country-0.0.8.tar.gz
| Download URL | translate_by_country-0.0.8.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e4d82f90ed1a17af954897ddb8d17df7fd6ddf98f3e7c0aa151376a9b7a263f
|
|
BLAKE2b-256 checksum How to use checksums |
4570a3454876b61115a0334116bf9a54b943d4f35ee33be86fcc51b986afb6ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.4
|
Release files / translate_by_country-0.0.8-py3-none-any.whl
| Download URL | translate_by_country-0.0.8-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd474814fc6c7d91da62d5a95b3381d4eea5811c871a98c04d9d456f4c2c61a6
|
|
BLAKE2b-256 checksum How to use checksums |
28f81c7bd2bd06159a8bdf29b311ab949e583c420bb2562c8e8a717e6d30ee5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.4
|