No project description provided
Project description
Use pip install i-texts
Requires:
- or
$TEXTS_PATH
- or
$LOCALE
and$LOCALES_PATH
(default:./locales
).
Loads texts from:
- or
$TEXTS_PATH
- or {
$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.2.0.tar.gz
(1.7 kB
view hashes)