I stopped my work on my Wolfram|Alpha extension to work on an annoying problem in Thunkable: Localization is really chaotic when doing it with lots of lists. Therefore I made an extension to make this easier. Simply upload a json file with a specified syntax (which I explain later). Then initialize the component (that actually reads the file’s content). Since version 3 there should be no need to initialize the component! Now you can use the localize method to get the right translation for your tag. A big thanks to @ColinTree to provide the source code of his SysLang extension.
You can download all sources in my GitHub repo
Note that there’s sometimes problems with the file because phones store the files differently. The extension needs some time to read the file’s content, so putting your localize tags in
Screen.Initialize
will not always work.
The json file must be in the format
{
"language1":
{
"tag1": "tag1translation",
"tag2": "tag2translation"
},
"language2":
{
"tag1": "tag1translation",
"tag2": "tag2translation"
}
}
All language tags should be in ISO 639‑1 format (two letters). You can download my example file here.
Which json format would you like?
- How it is
- In array format {“languages”: [“de”, “en”, “fr”], “tag1”: [“German translation”, “English translation”, “French translation”]
0 voters
Have fun with this extension and please post all issues with it here.
Visit my brand new website
Changelog
2017-08-29: Initial release
2017-08-30: Moved files to GitHub, added poll
2017-09-05: New version has error handling and default language
2017-10-08: v3 solves issue with storage
2018-02-09: v4 fixes bug with wrong error message
2018-05-10: v5 fixes bug “componentDb.getPropertyForType(…) is null”
2018-06-03: v6 introduces new UseLocale function