Metadata-Version: 2.1
Name: i-texts
Version: 0.1.0
License: MIT
Author-email: levch <levchenko.d.a1998@gmail.com>
Requires-Python: >=3.10
Requires-Dist: parsenv>=0.1.3
Requires-Dist: pyyaml>=6.0
Description-Content-Type: text/markdown

# I18n texts loader

Use `pip install i-texts`

- Requires `LOCALE` and `LOCALES_PATH` (default: `./locales`) environment variables.
- Loads texts from "{`LOCALES_PATH`}/{`LOCALE`}.yml"

## Example

```py
from i_texts import texts

assert texts.dict == {1: "1", "a": "a", "words": "a b c"}
assert texts[1] == "1"
assert texts["a"] == "a"
assert texts.get_words("words") == ["a", "b", "c"]
```

