MajeedKazemi / blocks-to-code-old

Other
1 stars 0 forks source link

change `say` to `print` #21

Open carlkma opened 2 years ago

carlkma commented 2 years ago

This is a seemingly easy upgrade. However, the keyword "say" is defined as Blockly.Msg.TEXT_PRINT_TITLE (a string literal) in /msg/messages.js. There isn't a dynamic way to change it, as mentioned here: https://github.com/google/blockly/issues/1895.

I am currently looking into different workarounds. (I think) what we did was to define a completely new block and hide the previous one. It's workable but not the best.