How to fix Blockly#setLocale not updating blocks arguments locales

112 views
Skip to first unread message

NotFox Real

unread,
Jul 2, 2022, 2:14:49 PM7/2/22
to Blockly
I'm trying to add language changer to my blockly app, and when I run this method block names are updating but not their arguments
Снимок экрана 2022-07-02 211436.png

Neil Fraser

unread,
Jul 4, 2022, 12:08:53 PM7/4/22
to blo...@googlegroups.com
This appears to be Russian ("истина" is "true").  Our Russian translations are nearly 100% complete (the only untranslated values are some help URLs and math operators).  So there doesn't appear to be anything wrong on our end with the translations.

Are you calling setLocale before injecting Blockly onto the page as the documentation states?  You can't change the language dynamically on an existing workspace.

Am Sa., 2. Juli 2022 um 20:14 Uhr schrieb NotFox Real <rllyn...@gmail.com>:
I'm trying to add language changer to my blockly app, and when I run this method block names are updating but not their arguments
Снимок экрана 2022-07-02 211436.png

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/a9617079-4cf5-40dd-bf14-47d54e701fecn%40googlegroups.com.


--

Purple Fox [MCBE]

unread,
Jul 5, 2022, 4:34:35 AM7/5/22
to Blockly
Im changing blockly language and then redefining workspace, block names and tooltips are changing, but not blocks arguments

понедельник, 4 июля 2022 г. в 19:08:53 UTC+3, Neil Fraser:

Beka Westberg

unread,
Jul 15, 2022, 10:22:01 AM7/15/22
to Blockly
Hello,

Could you provide the code you're using to change the language and redefine the workspace? That would really help with debugging!

Best wishes,
--Beka

Reply all
Reply to author
Forward
0 new messages