No project description provided
Project description
I18n texts loader
Use pip install i-texts
- Requires
LOCALE
andLOCALES_PATH
(default:./locales
) environment variables. - Loads texts from "{
LOCALES_PATH
}/{LOCALE
}.yml"
Example
from i_texts import texts
assert texts.dict == {1: "1", "a": "a", "words": "a b c", "ru": "русский"}
assert texts[1] == "1"
assert texts["a"] == "a"
assert texts.get_words("words") == ["a", "b", "c"]
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
i-texts-0.1.1.tar.gz
(1.7 kB
view hashes)