-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swedish/English button, potentially more languages in the future #3
Comments
Should we implement the blocks in a way that one can choose between Swedish and English with a button? It covers the language problem very well and let older children like teenagers to program in English which we know is a lot smoother. Also, translating all the standard blocks to Swedish would be a real hassle if there isn't an already translated version somewhere considering that we do not explicit define those blocks. some kind of override is needed. |
Do you have any idea to approach this? I mean how to switch between Swedish and English with a button? |
Btw I have translated all the blocks we have to Swedish; Not the standard blocks; take a look at the blocks and make any suitable changes if it's needed |
Yes, but we will need to make the site in both languages. react is really good at live-change contents of already existing objects/components. So in practice we could make list and/or variables with a key that resembles the chosen language and then get the words from the chosen language. Won't take a lot of time. |
I found an proposed easy way of live-translating the site through Blockly's build in language translator. But for it to work, all blocks must be defined in js and not in JSON which all our blocks currently are. The only thing we need to account for in that case is a context switch via a button and manual translation of any components outside the Blockly editor such as the "send code to pepper button" and of course the future "choose language dropdown". However, this does not seem to stable. See here:
We also have an older version of Blockly (because it was easier to get started with react in with the older version) so this issue is not resolved so it not guaranteed that it is possible to translate everything from the standard lib. |
Problems with loading different languages from other places than |
No description provided.
The text was updated successfully, but these errors were encountered: