<script src="msg/js/en.js"></script>
<script src="msg/js/fr.js"></script>
--
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.
----
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/uraab7pmyGM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+unsubscribe@googlegroups.com.
--
--
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/uraab7pmyGM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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.
Hi, Corythank you for your answer.It is useful.but, my project is Andorid demo of blockly.I replace the en.js with zh-hans.js, but the text of the block is not changed.And I think maybe the zh-hans.json isn't used,Where should I replace it or add it ?
在 2017年4月18日星期二 UTC+8上午12:26:04,Cory Diers写道:
Hey Hilty,Internationalization of blocks can be done easily by specifying the appropriate message file for your language. Somewhere in your code (likely in index.html,) there should be a messages file:<script src="msg/js/en.js"></script>In this example, it's english (en.js). Simply replace that with the desired language, like this:<script src="msg/js/fr.js"></script>That would change the block language to French. The message files we provide are found here: https://github.com/google/blockly/tree/master/msg/js
On Mon, Apr 17, 2017 at 1:37 AM, Hilty <hilty.c...@gmail.com> wrote:
Hi Guys,How I can localize the Blockly texts?I try to find it in documentation but I don't find it.Please could someone help me?Thanks for all,Cheers,
--
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.
--
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.