BangleApps/lang
Gordon Williams ee0b0f2d77 add readme files 2024-03-15 16:15:55 +00:00
..
unicode-based Improved Japanese translation. 2023-03-22 17:43:53 +01:00
README.md add readme files 2024-03-15 16:15:55 +00:00
bg_BG.json
ca_ES.json Update Catalan translation 2024-03-09 13:36:40 +01:00
cs_CZ.json
da_DK.json Rename da_DA -> da_DK 2024-02-26 01:13:16 +01:00
de_DE.json qmsched - Add german translations 2023-07-18 22:17:09 +02:00
el_EL.json
en_GB.json
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 agenda: show day of the week in date 2023-02-07 14:01:51 +01:00
ja_JA.json Improved Japanese translation. 2023-03-22 17:43:53 +01:00
lt_LT.json
lv_LV.json
nl_NL.json
nn_NO.json reformatting to what language_scan outputs 2023-02-23 11:47:34 +00:00
pl_PL.json
pt_BR.json reformatting to what language_scan outputs 2023-02-23 11:47:34 +00:00
pt_PT.json
ro_RO.json
ru_RU.json
sk_SK.json
sl_SL.json
sv_SE.json reformatting to what language_scan outputs 2023-02-23 11:47:34 +00:00
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 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)