Package that provides an easy API for adding different, easily changeable languages.
Project description
My python program that allows you to use multiple languages in your programs
Class named LangSupport is in lang_support.py file.
Install via pip:
pip install lang_support
main.py file, in tests directory, is an example of use.
To run example:
cd lang_support
py -m tests.main
Import LangSupport class:
import lang_support.lang_support
or
from lang_support.lang_support import LangSupport
Import LangSupportDL class:
import lang_support.lang_support_data_logger
or
from lang_support.lang_support_data_logger import LangSupportDL
generate_translation.py file is a script which read specified language file and generate translation for selected language (deepl package and token needed)
Place DeepL token in data_token.json file (in directory with generate_translation.py file) like below:
{
"deepl-token": "your-token"
}
To run translation generator, enter following commands:
cd lang_support
pip install deepl # if not installed
py -m tests.generate_translation.generate_translation.generate_translation --help
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lang_support-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 464fb6ec8879be0b491aec497df13fb1316b71de4a6e5052bffc0469cf24fe3a |
|
MD5 | 808581d1e6ac3d46cbd4b28bc2988a40 |
|
BLAKE2b-256 | b7ce696673ecf6dc1bd0c07eec394ee12a88e62af8665525e9f94930a9a7f0b7 |