How can i change the default language in Block

37 views
Skip to first unread message

Eng.Rania Al-Masalmeh

unread,
Sep 18, 2020, 2:21:13 AM9/18/20
to Blockly
i change the script but it dose not work i use blockly in angular

Abby Schmiedt

unread,
Sep 18, 2020, 5:21:51 PM9/18/20
to Blockly
Hello!

It depends a bit on how you are using blockly. If you are using blockly through npm you can change the language by:

import * as Fr from 'blockly/msg/fr';
Blockly.setLocale(Fr);

If you are not using npm you can change it by changing out the script tag: 
<script src="msg/js/en.js"></script>

If you are not using npm and the script tag is still not working please provide a bit more information about your project so we can help debug.

Thanks!
Abby


Eng.Rania Al-Masalmeh

unread,
Sep 22, 2020, 1:36:44 PM9/22/20
to blo...@googlegroups.com
Thanks alot 
Its work 👍😊

--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/Pk9aNguqCL8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/2e3de276-fd63-4008-a2ae-92b9f3d3e8can%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages