Internationalize 0.0.2a2

Creator: bradpython12

Last updated:

Add to Cart

Description:

Internationalize 0.0.2a2

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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.