add language key
This commit is contained in:
		
							parent
							
								
									4e2b25947d
								
							
						
					
					
						commit
						b808474913
					
				| @ -2,7 +2,7 @@ import React, { Component } from 'react'; | |||||||
| import PropTypes from 'prop-types'; | import PropTypes from 'prop-types'; | ||||||
| import { connect } from 'react-redux'; | import { connect } from 'react-redux'; | ||||||
| import { onChangeWorkspace } from '../../actions/workspaceActions'; | import { onChangeWorkspace } from '../../actions/workspaceActions'; | ||||||
| 
 | import * as De from './msg/de'; | ||||||
| import BlocklyComponent from './'; | import BlocklyComponent from './'; | ||||||
| import * as Blockly from 'blockly/core'; | import * as Blockly from 'blockly/core'; | ||||||
| import './blocks/index'; | import './blocks/index'; | ||||||
| @ -15,6 +15,7 @@ class BlocklyWindow extends Component { | |||||||
|   constructor(props) { |   constructor(props) { | ||||||
|     super(props); |     super(props); | ||||||
|     this.simpleWorkspace = React.createRef(); |     this.simpleWorkspace = React.createRef(); | ||||||
|  |     Blockly.setLocale(De); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   componentDidMount() { |   componentDidMount() { | ||||||
|  | |||||||
| @ -749,3 +749,4 @@ Blockly.Msg.sensebox_display_show_tip = "Print on Display"; | |||||||
| Blockly.Msg.sensebox_sd_filename = "data"; | Blockly.Msg.sensebox_sd_filename = "data"; | ||||||
| Blockly.Msg.sensebox_soil_smt50 = "Soil Moisture and Temperature (SMT50)"; | Blockly.Msg.sensebox_soil_smt50 = "Soil Moisture and Temperature (SMT50)"; | ||||||
| Blockly.Msg.sensebox_web_readHTML_filename = "File:"; | Blockly.Msg.sensebox_web_readHTML_filename = "File:"; | ||||||
|  | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user