Helps to internationalize your application
Project description
internationalize
A library to help you with internationalizing your application. Here's a guide to using it
Intro
While most Python internationalize libraries take an approach with your providing a language and a keyword, and returning a resembling string from an internal database, Internationalize takes a different approach.
Internationalize asks you to provide a keyword, and then returning a string containing a selection of the languages.
Where you would configure the standard library with dictionary of mappings, where each mapping would contain
configure_me({'hello': {'pl': 'Witaj'}, {'en': 'Hello'}})
pick_language('en')
...
assert get_translation('hello') == 'Hello'
Internationalize does the following:
configure_me({'hello': {'pl': 'Witaj'}, {'en': 'Hello'}})
...
assert get_translation('hello') == {'pl': 'Witaj', {'en': Hello'}}
Which is super useful for handling certain applications that require those.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file Internationalize-0.0.2a2.win-amd64.zip
.
File metadata
- Download URL: Internationalize-0.0.2a2.win-amd64.zip
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8cb27daca584c7d17f4c5bb56377c2e9e871e27b4d57743cb14b9f353749222 |
|
MD5 | f70a5f69587008feca22a24838ef8ff5 |
|
BLAKE2b-256 | 952096035cbc4fa13de98ac448481eac5e54dc218f340275b4280a572236f7ed |
File details
Details for the file Internationalize-0.0.2a2-py3.9.egg
.
File metadata
- Download URL: Internationalize-0.0.2a2-py3.9.egg
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2f5e11dabab2c83ff51818974a1fe9c4653e91ee75dc59d7b09a937c678a874 |
|
MD5 | 7fc33e029446649441de8f9e20951853 |
|
BLAKE2b-256 | f1abbf1215c429dd65bd0feedba652e77924a250807b309070a886100b33d129 |
File details
Details for the file Internationalize-0.0.2a2-py2.py3-none-any.whl
.
File metadata
- Download URL: Internationalize-0.0.2a2-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd0c1f3ecb43c0a3e8e36874f754f4c22ee053e061c2d940662a6e913111e437 |
|
MD5 | e5c630dfe48ade6a043e90d0c5b8ba28 |
|
BLAKE2b-256 | e8ad9df2706d70cdfe23ab5165a4556f197bda2ea7c8bef121b6a6107e817e03 |