Update: 添加新板卡 Python 3 Online
This commit is contained in:
5
boards/default_src/python_pyodide/language/en.js
Normal file
5
boards/default_src/python_pyodide/language/en.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export const EnMsg = {
|
||||
'PYTHON_PYODIDE_IMAGE': 'Image'
|
||||
};
|
||||
|
||||
export const EnCatgories = {};
|
||||
12
boards/default_src/python_pyodide/language/loader.js
Normal file
12
boards/default_src/python_pyodide/language/loader.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as Blockly from 'blockly/core';
|
||||
import { ZhHansMsg, ZhHansCatgories } from './zh-hans';
|
||||
import { ZhHantMsg, ZhHantCatgories } from './zh-hant';
|
||||
import { EnMsg, EnCatgories } from './en';
|
||||
|
||||
// 载入语言文件
|
||||
Object.assign(Blockly.Lang.ZhHans, ZhHansMsg);
|
||||
Object.assign(Blockly.Lang.ZhHant, ZhHantMsg);
|
||||
Object.assign(Blockly.Lang.En, EnMsg);
|
||||
Object.assign(Blockly.Lang.ZhHans.MSG, ZhHansCatgories);
|
||||
Object.assign(Blockly.Lang.ZhHant.MSG, ZhHantCatgories);
|
||||
Object.assign(Blockly.Lang.En.MSG, EnCatgories);
|
||||
5
boards/default_src/python_pyodide/language/zh-hans.js
Normal file
5
boards/default_src/python_pyodide/language/zh-hans.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export const ZhHansMsg = {
|
||||
'PYTHON_PYODIDE_IMAGE': '图像'
|
||||
};
|
||||
|
||||
export const ZhHansCatgories = {};
|
||||
5
boards/default_src/python_pyodide/language/zh-hant.js
Normal file
5
boards/default_src/python_pyodide/language/zh-hant.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export const ZhHantMsg = {
|
||||
'PYTHON_PYODIDE_IMAGE': '影像'
|
||||
};
|
||||
|
||||
export const ZhHantCatgories = {};
|
||||
Reference in New Issue
Block a user