Skip to content

Block Localization

Autre TechLab edited this page Feb 28, 2020 · 2 revisions

Blockly.Msg.COZMO_SET_CUBE_MODEL = 'Set %1 model on cube %2';

Usage (in blocks.js)

Blockly.Blocks['cozmo_set_cube_model'] = { init: function() { this.jsonInit({ "message0": Blockly.Msg.**COZMO_SET_CUBE_MODEL**,

Blockly.Msg.COZMO_BLOCK_ON_START_01 = "au démarrage"; Blockly.Msg.COZMO_BLOCK_ON_START_02 = "Exécute le programme au démarrage";

Blockly.Msg.COZMO_BLOCK_ON_START_01 = "on start"; Blockly.Msg.COZMO_BLOCK_ON_START_02 = 'Executes the program on start';

Clone this wiki locally