Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions notebook/i18n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Hint: if running Windows, you can set it in PowerShell with `${Env:LANG} = "xx_X

## Contributing and managing translations

Finding and translating the `.pot` files could be (partially) done with a translation API, see the repo [Jupyter Notebook Azure Translator](https://github.com/berendjan/Jupyter-Notebook-Azure-Translator.git) for a possible starting point. (Not affiliated with Jupyter)

### Requirements

- *pybabel* (could be installed `pip install babel`)
Expand Down Expand Up @@ -53,6 +55,8 @@ pybabel extract -F babel_nbjs.cfg -o nbjs.pot --no-wrap --project Jupyter .

After this is complete you have 3 `.pot` files that you can give to a translator for your favorite language.

Finding and translating the `.pot` files could be (partially done with a translation API, see the repo [Jupyter Notebook Azure Translator](https://github.com/berendjan/Jupyter-Notebook-Azure-Translator.git) for a possible starting point. (Not affiliated with Jupyter)

### Messages compilation

After the source material has been translated, you should have 3 `.po` files with the same base names
Expand Down
3 changes: 2 additions & 1 deletion notebook/i18n/nbjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"domain": "nbjs",
"supported_languages": [
"fr-FR",
"zh-CN"
"zh-CN",
"nl"
],
"locale_data": {
"nbjs": {
Expand Down
Loading