updated docs menu

This commit is contained in:
Peli de Halleux
2016-06-01 07:42:03 -07:00
parent 7f9f14df18
commit fd02bd9407
3 changed files with 40 additions and 10 deletions

View File

@ -18,4 +18,31 @@ To remove a package, click on the garbage button in the file list next to the pa
## Publishing libraries
Packages can be published from the pxt command line. We are still sorting out the details.
Packages can be published from the pxt command line. We are still sorting out the details.
## Localizing libraries
It is possible to package localization strings for the **jsDoc** description associated to the API in the package.
When compiling a package, the PXT compiler generates a `strings.json` file under the `_locales/` folder.
This file contains a map from the symbol name to the en
```
{
...
"basic": "Provides access to basic micro:bit functionality.",
...
}
```
```
{
"basic.clearScreen": "Eteint toutes les diodes."
}
```
```
_locales/
_locales/fr/strings.json
_locales/pt-BR/strings.json
```