Skip to main content

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 package 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 frontend.
  • Provide a Hatch Build Hook to compile catalogs when building wheels.
  • Update the list of contributors from Crowdin project.

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>

Development

Typescript extractor

To extract translatable strings from typescript files, this package relies on gettext-extract. To ease its installation and usage, that tool is packaged within the python package by creating a monolithic JavaScript file using @vercel/ncc compiler.

To update the monolithic file, have a look at the release file.

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-1.3.7.tar.gz (857.2 kB view details)

Uploaded Source

Built Distribution

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

jupyterlab_translate-1.3.7-py3-none-any.whl (854.9 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab_translate-1.3.7.tar.gz.

File metadata

  • Download URL: jupyterlab_translate-1.3.7.tar.gz
  • Upload date:
  • Size: 857.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for jupyterlab_translate-1.3.7.tar.gz
Algorithm Hash digest
SHA256 ce1663e5fc43456d345800e74fdc1023d3f4d1afa88d62b1e836b7342a4a0c61
MD5 0e14a396fc13824d0777664357cbe860
BLAKE2b-256 08260e147d6fa8051b40b5e8db367f64aa383c7ea982205f3e776ec32e3b3fa0

See more details on using hashes here.

File details

Details for the file jupyterlab_translate-1.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_translate-1.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a88384e888b203dbee78754c205c7bb06dad882cde220ad4e55af6c246c2ef13
MD5 83aabfda9b5f31a793b3839607118ede
BLAKE2b-256 fa07482a62cb87e71d1d624369d1ef94b41cf22ee72167ad5e2f67b3d051880b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.7 This release

2 files

1.3.6

2 files

1.3.5

2 files

1.3.4

2 files

1.3.3

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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