Metadata-Version: 2.1
Name: i21y
Version: 0.1.1
Summary: The library for i18n support.
License: MIT
Keywords: i18n
Author: Takagi Tasuku
Author-email: tasuren@outlook.jp
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Internationalization
Classifier: Typing :: Typed
Provides-Extra: fast-json
Provides-Extra: yaml
Requires-Dist: orjson (>=3.8.6,<4.0.0) ; extra == "fast-json"
Requires-Dist: pyyaml (>=6.0,<7.0) ; extra == "yaml"
Project-URL: Chat, https://discord.gg/kfMwZUyGFG
Project-URL: Documentation, https://i21y.readthedocs.io/
Project-URL: Donate, https://www.buymeacoffee.com/tasuren
Project-URL: Source, https://github.com/tasuren/i21y
Description-Content-Type: text/markdown

[![PyPI](https://img.shields.io/pypi/v/i21y)](https://pypi.org/project/i21y/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/i21y) ![PyPI - Downloads](https://img.shields.io/pypi/dm/i21y) ![PyPI - License](https://img.shields.io/pypi/l/i21y) [![Documentation Status](https://readthedocs.org/projects/i21y/badge/?version=latest)](https://i21y.readthedocs.io/en/latest/?badge=latest) [![Buy Me a Coffee](https://img.shields.io/badge/-tasuren-E9EEF3?label=Buy%20Me%20a%20Coffee&logo=buymeacoffee)](https://www.buymeacoffee.com/tasuren)
# 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
```python
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](https://i21y.readthedocs.io/) for usage and details.

## License
i21y is licensed under the [MIT license](https://github.com/tasuren/i21y/blob/main/LICENSE).

