Skip to content
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

Closed
casperlundberg opened this issue Oct 18, 2022 · 6 comments
Closed
Assignees
Labels
enhancement New feature or request question Further information is requested wontfix This will not be worked on

Comments

@casperlundberg
Copy link
Contributor

No description provided.

@casperlundberg casperlundberg added the enhancement New feature or request label Oct 18, 2022
@casperlundberg casperlundberg self-assigned this Oct 18, 2022
@casperlundberg
Copy link
Contributor Author

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.

@noorbhtiti
Copy link
Contributor

Do you have any idea to approach this? I mean how to switch between Swedish and English with a button?

@noorbhtiti
Copy link
Contributor

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

@casperlundberg
Copy link
Contributor Author

Do you have any idea to approach this? I mean how to switch between Swedish and English with a button?

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.

@casperlundberg casperlundberg added the question Further information is requested label Oct 29, 2022
@casperlundberg
Copy link
Contributor Author

casperlundberg commented Oct 31, 2022

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.

@casperlundberg casperlundberg changed the title Translate blocks to Swedish Swedish/English button, potentially more languages in the future Nov 2, 2022
@casperlundberg
Copy link
Contributor Author

Problems with loading different languages from other places than App.js

@casperlundberg casperlundberg added the wontfix This will not be worked on label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants