Jupyterlab Language Pack Translations Helper
Project description
jupyterlab-translate
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for jupyterlab-translate-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbd8b50d02397a179e14192bff410983e9012e6f6ceb455cb002e1eea26b448c |
|
MD5 | 55ff99e07b6551905006361df0bf52bb |
|
BLAKE2b-256 | 99ed5861eda302b4a373eda2b8e83be08ab43746b9b578219c9f2458a5d53ba2 |
Close
Hashes for jupyterlab_translate-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc4600ffa2d2ff24de7a2d2a5353289f67310e2a9d77c4755f6f76ffe3cafee9 |
|
MD5 | 3dd5e833d59e5d631fd1f1b3c66badeb |
|
BLAKE2b-256 | 33b44afa8eb36dec6d1a300d20aabca71677d20cad399bedf10f26dc0d8177aa |