Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Sep 27, 2024
1 parent 2834c72 commit cd97bcc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lang/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ Any apps which have Strings in which are prefixed with `/*LANG*/` will be scanne
language is set in the app loader the string will be replaced with a translation from the JSON
in this directory.

See https://www.espruino.com/Bangle.js+Locale#app-translations for more information.

JSON in `unicode-based` contains characters that can't be rendered by the default font
in Bangle.js. The `language_render.js` tool (below) renders the text to bitmaps and then
writes them into the corresponding JSON file in this directory, so that the bitmaps (rather than
just text) are included in apps instead.

Check out https://github.com/espruino/EspruinoAppLoaderCore/tree/master/tools (available in `core/tools` in this repo)

* `language_scan.js` - scan for unhandled `/*LANG*/` strings and automatically translate them
* `language_render.js` - renders the JSON translations in the `unicode-based` folder to bitmaps, and writes them into the corresponding JSON file in this directory (see above)
* `../core/tools/language_scan.js` - scan for unhandled `/*LANG*/` strings and automatically translate them
* `../core/tools/language_render.js` - renders the JSON translations in the `unicode-based` folder to bitmaps, and writes them into the corresponding JSON file in this directory (see above)

0 comments on commit cd97bcc

Please sign in to comment.