Skip to main content

Jupyterlab Language Pack Translations Helper

Project description

jupyterlab-translate

Linux tests license pypi version conda version Code Style: Black Join the chat at https://gitter.im/jupyterlab/jupyterlab

This package is used to generate language packs for the JupyterLab ecosystem.

This pacakge performs the following tasks common on JupyterLab core and external extensions:

  • Extract strings from code in *.py, *.ts, *.tsx files.
  • Extract strings from JSON schema files.
  • Create gettext *.pot catalogs.
  • Removes duplicate strings from catalogs.
  • Create gettext *.po catalogs for specific languages.
  • Compile catalogs to *.mo and *.json format to be consumed by the JupyterLab frontent.

Installation

Pip

pip install jupyterlab-translate

You will also need to install nodejs >= 14.

Conda

conda install jupyterlab-translate -c conda-forge

Usage

Bundle catalogs as part of a language pack

This is the recommended way of distributing your localization catalogs.

Visit the language packs repository.

Bundle catalogs with packages

jupyterlab-translate extract <JLAB-EXTENSION-DIR> <JLAB-EXTENSION-NAME>
jupyterlab-translate update <JLAB-EXTENSION-DIR> <JLAB-EXTENSION-NAME> -l es-ES
jupyterlab-translate compile <JLAB-EXTENSION-DIR> <JLAB-EXTENSION-NAME>

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

jupyterlab-translate-0.1.1.tar.gz (843.2 kB view details)

Uploaded Source

Built Distribution

jupyterlab_translate-0.1.1-py2.py3-none-any.whl (847.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file jupyterlab-translate-0.1.1.tar.gz.

File metadata

  • Download URL: jupyterlab-translate-0.1.1.tar.gz
  • Upload date:
  • Size: 843.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for jupyterlab-translate-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bbd8b50d02397a179e14192bff410983e9012e6f6ceb455cb002e1eea26b448c
MD5 55ff99e07b6551905006361df0bf52bb
BLAKE2b-256 99ed5861eda302b4a373eda2b8e83be08ab43746b9b578219c9f2458a5d53ba2

See more details on using hashes here.

File details

Details for the file jupyterlab_translate-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: jupyterlab_translate-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 847.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for jupyterlab_translate-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dc4600ffa2d2ff24de7a2d2a5353289f67310e2a9d77c4755f6f76ffe3cafee9
MD5 3dd5e833d59e5d631fd1f1b3c66badeb
BLAKE2b-256 33b44afa8eb36dec6d1a300d20aabca71677d20cad399bedf10f26dc0d8177aa

See more details on using hashes here.

Supported by

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