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 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
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.0.tar.gz
(12.3 kB
view hashes)
Built Distribution
Close
Hashes for jupyterlab-translate-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90fa1bf2a704c682953eb7e322112a35c72e028d4f7c6e25e0af527346c0f89b |
|
MD5 | d5f29a6fc7a217cd78ee5d7fd0ad0cce |
|
BLAKE2b-256 | 688b1ccaa8994ff237835f3eecdf741309e0921ab6f66978038be1bbba883f8d |
Close
Hashes for jupyterlab_translate-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5d4b988025be394013a9ef198f475a634e1aae3911a9729b083b0c9be2432d8 |
|
MD5 | 9318a9c560370e40523ea9806a94bc8f |
|
BLAKE2b-256 | ba7aa2bb45472ee5ba7c62ac57e6dd0cfbfd647076d0432bdfab7ce63437d0ec |