Skip to content

Files

Latest commit

cd97bcc · Sep 27, 2024

History

History

lang

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 22, 2023
Sep 27, 2024
Feb 10, 2022
Mar 9, 2024
Feb 9, 2022
Sep 16, 2024
Jul 18, 2023
Feb 10, 2022
Jan 18, 2022
Apr 24, 2024
Feb 11, 2024
Feb 10, 2022
Feb 9, 2022
Dec 18, 2023
Apr 16, 2022
Feb 9, 2022
Feb 26, 2024
Feb 7, 2023
Mar 22, 2023
Feb 10, 2022
Feb 10, 2022
Mar 3, 2022
Feb 23, 2023
Feb 10, 2022
Feb 23, 2023
Feb 9, 2022
Feb 10, 2022
Feb 9, 2022
Feb 10, 2022
Feb 10, 2022
Feb 23, 2023
Feb 9, 2022

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)