1
0
Fork 0
BangleApps/lang
Gordon Williams cd97bccda3 update readme 2024-09-27 12:01:12 +01:00
..
unicode-based Improved Japanese translation. 2023-03-22 17:43:53 +01:00
README.md update readme 2024-09-27 12:01:12 +01:00
bg_BG.json Removed auto /*LANG*/, Added more languages 2022-02-10 09:30:00 -04:00
ca_ES.json Update Catalan translation 2024-03-09 13:36:40 +01:00
cs_CZ.json Added a bunch of auto translations 2022-02-09 19:51:55 -04:00
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 Removed auto /*LANG*/, Added more languages 2022-02-10 09:30:00 -04:00
en_GB.json Add menu option for language translations (fix #136) 2022-01-18 16:21:30 +00:00
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 Removed auto /*LANG*/, Added more languages 2022-02-10 09:30:00 -04:00
fi_FI.json Added a bunch of auto translations 2022-02-09 19:51:55 -04:00
fr_FR.json Update fr_FR.json: Fix 'back' 2023-12-18 14:58:48 +01:00
hr_HR.json lang: added Croatian locale 2022-04-16 20:58:29 +02:00
hu_HU.json Added a bunch of auto translations 2022-02-09 19:51:55 -04:00
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 Removed auto /*LANG*/, Added more languages 2022-02-10 09:30:00 -04:00
lv_LV.json Removed auto /*LANG*/, Added more languages 2022-02-10 09:30:00 -04:00
nl_NL.json Dutch translations 2022-03-03 09:29:47 +01:00
nn_NO.json reformatting to what language_scan outputs 2023-02-23 11:47:34 +00:00
pl_PL.json Removed auto /*LANG*/, Added more languages 2022-02-10 09:30:00 -04:00
pt_BR.json reformatting to what language_scan outputs 2023-02-23 11:47:34 +00:00
pt_PT.json Added a bunch of auto translations 2022-02-09 19:51:55 -04:00
ro_RO.json Removed auto /*LANG*/, Added more languages 2022-02-10 09:30:00 -04:00
ru_RU.json Added a bunch of auto translations 2022-02-09 19:51:55 -04:00
sk_SK.json Removed auto /*LANG*/, Added more languages 2022-02-10 09:30:00 -04:00
sl_SL.json Removed auto /*LANG*/, Added more languages 2022-02-10 09:30:00 -04:00
sv_SE.json reformatting to what language_scan outputs 2023-02-23 11:47:34 +00:00
tr_TR.json Added a bunch of auto translations 2022-02-09 19:51:55 -04:00

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)