jupyterlab-translate
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,*.tsxfiles. - Extract strings from JSON schema files.
- Create gettext
*.potcatalogs. - Removes duplicate strings from catalogs.
- Create gettext
*.pocatalogs for specific languages. - Compile catalogs to
*.moand*.jsonformat 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.
Metadata
Release files for jupyterlab-translate 1.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jupyterlab_translate-1.3.7.tar.gz | 857.2 kB | Without provenance | Details for jupyterlab_translate-1.3.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyterlab_translate-1.3.7-py3-none-any.whl | Python 3 | none | any | Details for jupyterlab_translate-1.3.7-py3-none-any.whl |
Total release size: 1.7 MB
Release files / jupyterlab_translate-1.3.7.tar.gz
| Download URL | jupyterlab_translate-1.3.7.tar.gz |
|---|---|
| Size | 857.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce1663e5fc43456d345800e74fdc1023d3f4d1afa88d62b1e836b7342a4a0c61
|
|
BLAKE2b-256 checksum How to use checksums |
08260e147d6fa8051b40b5e8db367f64aa383c7ea982205f3e776ec32e3b3fa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / jupyterlab_translate-1.3.7-py3-none-any.whl
| Download URL | jupyterlab_translate-1.3.7-py3-none-any.whl |
|---|---|
| Size | 854.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a88384e888b203dbee78754c205c7bb06dad882cde220ad4e55af6c246c2ef13
|
|
BLAKE2b-256 checksum How to use checksums |
fa07482a62cb87e71d1d624369d1ef94b41cf22ee72167ad5e2f67b3d051880b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for jupyterlab-translate 1.3.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.