The library for i18n support.
Project description
i21y
i21y (a.k.a internationalization.py) is library for support i18n in Python. It is easy to use.
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
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
i21y-0.1.0.post1.tar.gz
(8.9 kB
view hashes)
Built Distribution
i21y-0.1.0.post1-py3-none-any.whl
(10.5 kB
view hashes)
Close
Hashes for i21y-0.1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1308e63731b7b0699155ae543a8173dc2e96f21fe38edd9746410a10622c09e |
|
MD5 | d93115d92df17119ba1b9bf887c864bb |
|
BLAKE2b-256 | d5ec3e795267b9b3eff01b6ee5decd87b75eb4b9541ae620e12e10d7d8b27280 |