I would like to ask how to translate the default parameters and selection boxes in Snap! custom blocks into other language?
Or, if you are looking into contributing to the translations
I could be misremembering, but I do not think it’s currently possible to translate either outhouse two things.
Based on the question, I assume you want to make a library which is translated and this is much harder for complex blocks. But if you right click on the hat block in the editor, you can at least translate the block spec.
If you want to use a drop-down menu in a block which is built-in to Snap!, then those are translated when you change the language.
You can do it for menus by detecting the language using
and then dynamically creating the menu:
The block in the script pic is my work in progress for converting the text to the list format used by the "when slot signals menu" setup.
or use the JS-free version: (extension [ide_language V] @<:>) (can be found by opening the settings menu and switching on Extension blocks)
Mine was JS-free to using SciSnap!, but yours is better because it doesn't load the whole library.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

