BangleApps/lang
Gordon Williams cd97bccda3 update readme 2024-09-27 12:01:12 +01:00
..
unicode-based
README.md update readme 2024-09-27 12:01:12 +01:00
bg_BG.json
ca_ES.json Update Catalan translation 2024-03-09 13:36:40 +01:00
cs_CZ.json
da_DK.json Counter: add danish translations 2024-09-16 23:47:27 +02:00
de_DE.json qmsched - Add german translations 2023-07-18 22:17:09 +02:00
el_EL.json
en_GB.json
eo.json Finished esperanto translation 2024-04-24 11:57:17 +02:00
es_ES.json Fixes to Spanish translation 2024-02-11 21:24:28 +01:00
et_ET.json
fi_FI.json
fr_FR.json Update fr_FR.json: Fix 'back' 2023-12-18 14:58:48 +01:00
hr_HR.json
hu_HU.json
index.json Rename da_DA -> da_DK 2024-02-26 01:13:16 +01:00
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.

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)

  • ../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)