|
|
||
|---|---|---|
| .. | ||
| unicode-based | ||
| README.md | ||
| bg_BG.json | ||
| ca_ES.json | ||
| cs_CZ.json | ||
| da_DK.json | ||
| de_DE.json | ||
| el_EL.json | ||
| en_GB.json | ||
| es_ES.json | ||
| et_ET.json | ||
| fi_FI.json | ||
| fr_FR.json | ||
| hr_HR.json | ||
| hu_HU.json | ||
| index.json | ||
| it_IT.json | ||
| ja_JA.json | ||
| lt_LT.json | ||
| lv_LV.json | ||
| nl_NL.json | ||
| nn_NO.json | ||
| pl_PL.json | ||
| pt_BR.json | ||
| pt_PT.json | ||
| ro_RO.json | ||
| ru_RU.json | ||
| sk_SK.json | ||
| sl_SL.json | ||
| sv_SE.json | ||
| tr_TR.json | ||
README.md
Localisation
Any apps which have Strings in which are prefixed with /*LANG*/ will be scanned, and if the
language is set in the app loader the string will be replaced with a translation from the JSON
in this directory.
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 themlanguage_render.js- renders the JSON translations in theunicode-basedfolder to bitmaps, and writes them into the corresponding JSON file in this directory (see above)