diff --git a/src/components/Blockly/BlocklyWindow.js b/src/components/Blockly/BlocklyWindow.js index 7e06566..228867b 100644 --- a/src/components/Blockly/BlocklyWindow.js +++ b/src/components/Blockly/BlocklyWindow.js @@ -2,7 +2,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { onChangeWorkspace } from '../../actions/workspaceActions'; - +import * as De from './msg/de'; import BlocklyComponent from './'; import * as Blockly from 'blockly/core'; import './blocks/index'; @@ -15,6 +15,7 @@ class BlocklyWindow extends Component { constructor(props) { super(props); this.simpleWorkspace = React.createRef(); + Blockly.setLocale(De); } componentDidMount() { diff --git a/src/components/Blockly/msg/en.js b/src/components/Blockly/msg/en.js index 5f82a77..b4bc8c0 100644 --- a/src/components/Blockly/msg/en.js +++ b/src/components/Blockly/msg/en.js @@ -749,3 +749,4 @@ Blockly.Msg.sensebox_display_show_tip = "Print on Display"; Blockly.Msg.sensebox_sd_filename = "data"; Blockly.Msg.sensebox_soil_smt50 = "Soil Moisture and Temperature (SMT50)"; Blockly.Msg.sensebox_web_readHTML_filename = "File:"; +