Skip to main content

Jupyterlab Language Pack Translations Helper

Project description

jupyterlab-translate

Linux tests 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 gettext-extract to be able to extract strings from *.tsx files.

npm install gettext-extract -g

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

jlab-trans extract <JLAB-EXTENSION-DIR> <JLAB_EXTENSION_NAME>
jlab-trans update <JLAB-EXTENSION-DIR> <JLAB_EXTENSION_NAME> -l es-ES
jlab-trans 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.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

jupyterlab_translate-0.1.0-py2.py3-none-any.whl (14.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: jupyterlab-translate-0.1.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0.post20200616 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for jupyterlab-translate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 90fa1bf2a704c682953eb7e322112a35c72e028d4f7c6e25e0af527346c0f89b
MD5 d5f29a6fc7a217cd78ee5d7fd0ad0cce
BLAKE2b-256 688b1ccaa8994ff237835f3eecdf741309e0921ab6f66978038be1bbba883f8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jupyterlab_translate-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0.post20200616 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for jupyterlab_translate-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c5d4b988025be394013a9ef198f475a634e1aae3911a9729b083b0c9be2432d8
MD5 9318a9c560370e40523ea9806a94bc8f
BLAKE2b-256 ba7aa2bb45472ee5ba7c62ac57e6dd0cfbfd647076d0432bdfab7ce63437d0ec

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