How to change the default language?

948 views
Skip to first unread message

Davide Prati

unread,
May 30, 2017, 6:00:28 AM5/30/17
to Blockly
Hi, I'm trying to switch the default language from english to german.
I see that in the blockly folder there is a i18n folder, but I do not find any documentation about how to set it. For custom blocks I've simply change the label, but I would like to set the language to german for the loop block.
Is it possible to do it in blockly?

Neil Fraser

unread,
May 30, 2017, 7:13:30 AM5/30/17
to blo...@googlegroups.com
In your HTML file there should be a script tag for msg/js/en.js which you can change to msg/js/de.js

See: https://developers.google.com/blockly/guides/configure/web/fixed-size

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Davide Prati

unread,
May 31, 2017, 10:34:05 AM5/31/17
to Blockly, ro...@neil.fraser.name
It works, thanks


On Tuesday, May 30, 2017 at 1:13:30 PM UTC+2, Neil Fraser wrote:
In your HTML file there should be a script tag for msg/js/en.js which you can change to msg/js/de.js

See: https://developers.google.com/blockly/guides/configure/web/fixed-size
On 30 May 2017 at 11:00, Davide Prati <last...@gmail.com> wrote:
Hi, I'm trying to switch the default language from english to german.
I see that in the blockly folder there is a i18n folder, but I do not find any documentation about how to set it. For custom blocks I've simply change the label, but I would like to set the language to german for the loop block.
Is it possible to do it in blockly?

--
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.

For more options, visit https://groups.google.com/d/optout.

Eng.Rania Al-Masalmeh

unread,
Sep 17, 2020, 3:08:27 PM9/17/20
to Blockly
Hallo, i try to change the language to deutsh in script file but it dosent work
Reply all
Reply to author
Forward
0 new messages