Skip to main content

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

lang_support-1.3.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lang_support-1.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file lang_support-1.3.0.tar.gz.

File metadata

  • Download URL: lang_support-1.3.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for lang_support-1.3.0.tar.gz
Algorithm Hash digest
SHA256 38b90b03982483be3358e6561b7d94d3b5c484da5781a7bf1f8a8f4d9479e7fe
MD5 a82965c29545a21e6f7a560737a21635
BLAKE2b-256 a6e48434feb964612c9bbd52d7ce134b7cf635283135745b4f9f72e8d78d0997

See more details on using hashes here.

File details

Details for the file lang_support-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: lang_support-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for lang_support-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 464fb6ec8879be0b491aec497df13fb1316b71de4a6e5052bffc0469cf24fe3a
MD5 808581d1e6ac3d46cbd4b28bc2988a40
BLAKE2b-256 b7ce696673ecf6dc1bd0c07eec394ee12a88e62af8665525e9f94930a9a7f0b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page