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
Hashes for Internationalize-0.0.2a2.win-amd64.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8cb27daca584c7d17f4c5bb56377c2e9e871e27b4d57743cb14b9f353749222 |
|
MD5 | f70a5f69587008feca22a24838ef8ff5 |
|
BLAKE2b-256 | 952096035cbc4fa13de98ac448481eac5e54dc218f340275b4280a572236f7ed |
Hashes for Internationalize-0.0.2a2-py3.9.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2f5e11dabab2c83ff51818974a1fe9c4653e91ee75dc59d7b09a937c678a874 |
|
MD5 | 7fc33e029446649441de8f9e20951853 |
|
BLAKE2b-256 | f1abbf1215c429dd65bd0feedba652e77924a250807b309070a886100b33d129 |
Hashes for Internationalize-0.0.2a2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd0c1f3ecb43c0a3e8e36874f754f4c22ee053e061c2d940662a6e913111e437 |
|
MD5 | e5c630dfe48ade6a043e90d0c5b8ba28 |
|
BLAKE2b-256 | e8ad9df2706d70cdfe23ab5165a4556f197bda2ea7c8bef121b6a6107e817e03 |