Basically the current method (storing all translations in memory and translating on demand) is slow, doesn't always work, and will use a bunch of memory for anything more than the handful of translations we have now. So the idea is to translate apps at the time they are uploaded by detecting any text strings with /*LANG*/ before them and swapping them out.
It's pretty much there (just needs a UI option to enable it) so once that's in and we get some proper translations, I'll pull the translations out of the locale app anyway.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks - that's an interesting idea.
There is actually an attempt ongoing to fix the translations properly which would allow us to separate this out - see https://github.com/espruino/BangleApps/issues/136
Basically the current method (storing all translations in memory and translating on demand) is slow, doesn't always work, and will use a bunch of memory for anything more than the handful of translations we have now. So the idea is to translate apps at the time they are uploaded by detecting any text strings with
/*LANG*/
before them and swapping them out.It's pretty much there (just needs a UI option to enable it) so once that's in and we get some proper translations, I'll pull the translations out of the
locale
app anyway.