Skip to main content

The library for i18n support.

Project description

PyPI PyPI - Python Version PyPI - Downloads PyPI - License Documentation Status Buy Me a Coffee

i21y

i21y (a.k.a internationalization.py) is library for support i18n in Python. It is easy to use.

WARNING
It is still in beta.

Installation

Normal: pip install i21y
YAML supported: pip install i21y[yaml]
Fast JSON (orjson) supported: pip install i21y[fast-json]

Example

from i21y import Translator
from i21y.loaders.json import Loader

t = Translator(Loader("locale"))

assert t("main.responses.not_found", locale="ja") == "見つからなかった。"

Documentation

See the documentation for usage and details.

License

i21y is licensed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i21y-0.1.0b2.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

i21y-0.1.0b2-py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page