Skip to content

Commit

Permalink
localize completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Wfluid committed Aug 4, 2021
1 parent 9d9ed49 commit 17a514a
Show file tree
Hide file tree
Showing 12 changed files with 1,971 additions and 1 deletion.
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
makecode:
target:
platform:
home_url:
theme: jekyll-theme-slate
include:
- assets
- README.md
47 changes: 47 additions & 0 deletions _locales/Coolguy_advan_extension-jsdoc-strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"Coolguy_advan": "Coolguy advanced extension",
"Coolguy_advan.SoundSensor_AsrResult": "The result of sound or talk",
"Coolguy_advan.SoundSensor_End_conversation": "Stop sound recording",
"Coolguy_advan.SoundSensor_Result_flag": "Is result of sound or talk there",
"Coolguy_advan.SoundSensor_SetMode": "Mode setting",
"Coolguy_advan.SoundSensor_SetPort": "port setting",
"Coolguy_advan.SoundSensor_SetWiFi": "Account and Password setting",
"Coolguy_advan.SoundSensor_SetWiFi|param|PASSWORD": "Key, eg: robotrobot",
"Coolguy_advan.SoundSensor_SetWiFi|param|SSID": "ID, eg: \"CoolGuyRobot\"",
"Coolguy_advan.SoundSensor_Start_conversation": "Start sound record",
"Coolguy_advan.SoundSensor_TtsContent": "SoundSensor sends message",
"Coolguy_advan.SoundSensor_Vocice_conversation": "Press the button to speak",
"Coolguy_advan.SoundSensor_WaitInit": "SoundSenor init",
"Coolguy_advan.VisionSensor_Begin": "Camera init",
"Coolguy_advan.VisionSensor_Detected": "Camera detected(Card)",
"Coolguy_advan.VisionSensor_Detected1": "Camera detected",
"Coolguy_advan.iCloudMemory_Serial_Init": "WIFI init",
"Coolguy_advan.iCloudMemory_WiFi_SSIDPWD_Config": "WIFI setting",
"Coolguy_advan.iCloudMemory_WiFi_SSIDPWD_Config|param|PASSWORD": "Key, eg: robotrobot",
"Coolguy_advan.iCloudMemory_WiFi_SSIDPWD_Config|param|SSID": "ID, eg: \"CoolGuyRobot\"",
"Coolguy_advan.iCloudMemory_iCloudCommon_Read_Num": "WIFI read number from common cloud",
"Coolguy_advan.iCloudMemory_iCloudCommon_Read_Num|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloudCommon_Read_Str": "WIFI read strings from common cloud",
"Coolguy_advan.iCloudMemory_iCloudCommon_Read_Str|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloudShare_Write_num": "WIFI send number to common cloud",
"Coolguy_advan.iCloudMemory_iCloudShare_Write_num|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloudShare_Write_str": "WIFI send strings to common cloud",
"Coolguy_advan.iCloudMemory_iCloudShare_Write_str|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloud_Read_Float": "WIFI read number",
"Coolguy_advan.iCloudMemory_iCloud_Read_Float|param|MACaddr": "the adress of MAC, eg: \"2C3AE81ED2C1\"",
"Coolguy_advan.iCloudMemory_iCloud_Read_Float|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloud_Read_String": "WIFI read strings",
"Coolguy_advan.iCloudMemory_iCloud_Read_String|param|MACaddr": "the adress of MAC, eg: \"2C3AE81ED2C1\"",
"Coolguy_advan.iCloudMemory_iCloud_Read_String|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloud_Write_num": "WIFI send number",
"Coolguy_advan.iCloudMemory_iCloud_Write_num|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloud_Write_str": "WIFI send strings",
"Coolguy_advan.iCloudMemory_iCloud_Write_str|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.wtr050_Init": "wtr50 init",
"Coolguy_advan.wtr050_playvoice": "Play recording",
"Coolguy_advan.wtr050_playvoice|param|chan": "the channel of voice, eg: 1",
"Coolguy_advan.wtr050_recordstart": "wtr50 start recording",
"Coolguy_advan.wtr050_recordstart|param|chan": "the channel of voice, eg: 1",
"Coolguy_advan.wtr050_recordstop": "wtr50 stop recording",
"Coolguy_advan.wtr050_stopvoice": "Stop playing recording"
}
64 changes: 64 additions & 0 deletions _locales/Coolguy_advan_extension-strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"Coolguy_advan.SoundSensor_AsrResult|block": "The result of sound or talk",
"Coolguy_advan.SoundSensor_End_conversation|block": "Stop sound recording",
"Coolguy_advan.SoundSensor_Result_flag|block": "Is result of sound or talk there?",
"Coolguy_advan.SoundSensor_SetMode|block": "Set SoundSensor mode as %mode|",
"Coolguy_advan.SoundSensor_SetPort|block": "Set port at %exterpin|",
"Coolguy_advan.SoundSensor_SetWiFi|block": "Set account %SSID| and password %PASSWORD|",
"Coolguy_advan.SoundSensor_Start_conversation|block": "Start sound recording",
"Coolguy_advan.SoundSensor_TtsContent|block": "Send the message %str| of sound or talk",
"Coolguy_advan.SoundSensor_Vocice_conversation|block": "Press the button to speak %num|",
"Coolguy_advan.SoundSensor_WaitInit|block": "wait init finished",
"Coolguy_advan.VisionSensor_Begin|block": "Set camera at %exterpin|as %Y|",
"Coolguy_advan.VisionSensor_Detected1|block": "Camera detected %x|",
"Coolguy_advan.VisionSensor_Detected|block": "Camera detected %x|",
"Coolguy_advan.iCloudMemory_Serial_Init|block": "WIFI init at %exterpin|",
"Coolguy_advan.iCloudMemory_WiFi_SSIDPWD_Config|block": "Set WIFI account %SSID| and password %PASSWORD|",
"Coolguy_advan.iCloudMemory_iCloudCommon_Read_Num|block": "WIFI read number from common cloud %addr|",
"Coolguy_advan.iCloudMemory_iCloudCommon_Read_Str|block": "WIFI read strings from common cloud %addr|",
"Coolguy_advan.iCloudMemory_iCloudShare_Write_num|block": "WIFI send number %data| to common cloud %addr|",
"Coolguy_advan.iCloudMemory_iCloudShare_Write_str|block": "WIFI send strings %data| to common cloud %addr|",
"Coolguy_advan.iCloudMemory_iCloud_Read_Float|block": "WIFI read number from MAC %MACaddr| and cloud %addr|",
"Coolguy_advan.iCloudMemory_iCloud_Read_String|block": "WIFI read strings from MAC %MACaddr| and cloud %addr|",
"Coolguy_advan.iCloudMemory_iCloud_Write_num|block": "WIFI send number %data| to cloud %addr|",
"Coolguy_advan.iCloudMemory_iCloud_Write_str|block": "WIFI send strings %data| to cloud %addr|",
"Coolguy_advan.wtr050_Init|block": "Set port at %pin|",
"Coolguy_advan.wtr050_playvoice|block": "Play recoding at channel %chan|",
"Coolguy_advan.wtr050_recordstart|block": "Start recording at channel %chan|",
"Coolguy_advan.wtr050_recordstop|block": "Stop recording",
"Coolguy_advan.wtr050_stopvoice|block": "Stop playing",
"Coolguy_advan|block": "Coolguy_advan",
"SoundSensor_Mode.MODE_ASR|block": "MODE_ASR",
"SoundSensor_Mode.MODE_DIA|block": "MODE_DIA",
"SoundSensor_Mode.MODE_TTS|block": "MODE_TTS",
"SoundSensor_Mode.MODE_WORD|block": "MODE_WORD",
"VisionDetect_Card.Card_Round|block": "Card_Round",
"VisionDetect_Card.Card_Squar|block": "Card_Squar",
"VisionDetect_Card.Card_Trian|block": "Card_Trian",
"VisionDetect_Others.BALL|block": "BALL",
"VisionDetect_Others.BODY|block": "BODY",
"VisionDetect_Others.FACERCG|block": "FACERCG",
"VisionDetect_Others.FACE|block": "FACE",
"VisionDetect_Others.LINE|block": "LINE",
"VisionDetect_Others.MOVINGOBJECT|block": "MOVINGOBJECT",
"VisionSensor_Mode.BALL|block": "BALL",
"VisionSensor_Mode.BODY|block": "BODY",
"VisionSensor_Mode.CARD|block": "CARD",
"VisionSensor_Mode.FACERCG|block": "FACERCG",
"VisionSensor_Mode.FACE|block": "FACE",
"VisionSensor_Mode.LINE|block": "LINE",
"VisionSensor_Mode.MOVINGOBJECT|block": "MOVINGOBJECT",
"exter_ports2.J5|block": "IO13/14",
"exter_ports2.J6|block": "IO15/16",
"exter_ports3.J1|block": "AD0",
"exter_ports3.J2|block": "IO1",
"exter_ports3.J3|block": "IO2",
"exter_ports3.J4|block": "IO16",
"exter_ports3.J5|block": "IO13/14",
"exter_ports3.J6|block": "IO15/16",
"{id:category}Coolguy_advan": "Coolguy_advan",
"{id:group}SoundSensor": "SoundSensor",
"{id:group}VisionSensor": "VisionSensor",
"{id:group}WIFI": "WIFI",
"{id:group}wtr50_1": "wtr50_1"
}
55 changes: 55 additions & 0 deletions _locales/neopixel-jsdoc-strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"NeoPixelColors": "Well known colors for a NeoPixel strip",
"NeoPixelMode": "Different modes for RGB or RGB+W NeoPixel strips",
"neopixel": "Functions to operate NeoPixel strips.",
"neopixel.Strip": "A NeoPixel strip",
"neopixel.Strip.clear": "Turn off all LEDs.\nYou need to call ``show`` to make the changes visible.",
"neopixel.Strip.easeBrightness": "Apply brightness to current colors using a quadratic easing function.",
"neopixel.Strip.length": "Gets the number of pixels declared on the strip",
"neopixel.Strip.power": "Estimates the electrical current (mA) consumed by the current light configuration.",
"neopixel.Strip.range": "Create a range of LEDs.",
"neopixel.Strip.range|param|length": "number of LEDs in the range. eg: 4",
"neopixel.Strip.range|param|start": "offset in the LED strip to start the range",
"neopixel.Strip.rotate": "Rotate LEDs forward.\nYou need to call ``show`` to make the changes visible.",
"neopixel.Strip.rotate|param|offset": "number of pixels to rotate forward, eg: 1",
"neopixel.Strip.setBrightness": "Set the brightness of the strip. This flag only applies to future operation.",
"neopixel.Strip.setBrightness|param|brightness": "a measure of LED brightness in 0-255. eg: 255",
"neopixel.Strip.setMatrixColor": "Set LED to a given color (range 0-255 for r, g, b) in a matrix shaped strip \nYou need to call ``show`` to make the changes visible.",
"neopixel.Strip.setMatrixColor|param|rgb": "RGB color of the LED",
"neopixel.Strip.setMatrixColor|param|x": "horizontal position",
"neopixel.Strip.setMatrixColor|param|y": "horizontal position",
"neopixel.Strip.setMatrixWidth": "Sets the number of pixels in a matrix shaped strip",
"neopixel.Strip.setMatrixWidth|param|chain": "type of matrix",
"neopixel.Strip.setMatrixWidth|param|rotation": "type of matrix",
"neopixel.Strip.setMatrixWidth|param|width": "number of pixels in a row",
"neopixel.Strip.setPin": "Set the pin where the neopixel is connected, defaults to P0.",
"neopixel.Strip.setPixelColor": "Set LED to a given color (range 0-255 for r, g, b). \nYou need to call ``show`` to make the changes visible.",
"neopixel.Strip.setPixelColor|param|pixeloffset": "position of the NeoPixel in the strip",
"neopixel.Strip.setPixelColor|param|rgb": "RGB color of the LED",
"neopixel.Strip.setPixelWhiteLED": "For NeoPixels with RGB+W LEDs, set the white LED brightness. This only works for RGB+W NeoPixels.",
"neopixel.Strip.setPixelWhiteLED|param|pixeloffset": "position of the LED in the strip",
"neopixel.Strip.setPixelWhiteLED|param|white": "brightness of the white LED",
"neopixel.Strip.shift": "Shift LEDs forward and clear with zeros.\nYou need to call ``show`` to make the changes visible.",
"neopixel.Strip.shift|param|offset": "number of pixels to shift forward, eg: 1",
"neopixel.Strip.show": "Send all the changes to the strip.",
"neopixel.Strip.showBarGraph": "Displays a vertical bar graph based on the `value` and `high` value.\nIf `high` is 0, the chart gets adjusted automatically.",
"neopixel.Strip.showBarGraph|param|high": "maximum value, eg: 255",
"neopixel.Strip.showBarGraph|param|value": "current value to plot",
"neopixel.Strip.showColor": "Shows all LEDs to a given color (range 0-255 for r, g, b).",
"neopixel.Strip.showColor|param|rgb": "RGB color of the LED",
"neopixel.Strip.showRainbow": "Shows a rainbow pattern on all LEDs.",
"neopixel.Strip.showRainbow|param|endHue": "the end hue value for the rainbow, eg: 360",
"neopixel.Strip.showRainbow|param|startHue": "the start hue value for the rainbow, eg: 1",
"neopixel.colors": "Gets the RGB value of a known color",
"neopixel.create": "Create a new NeoPixel driver for `numleds` LEDs.",
"neopixel.create|param|numleds": "number of leds in the strip, eg: 24,30,60,64",
"neopixel.create|param|pin": "the pin where the neopixel is connected.",
"neopixel.hsl": "Converts a hue saturation luminosity value into a RGB color",
"neopixel.hsl|param|h": "hue from 0 to 360",
"neopixel.hsl|param|l": "luminosity from 0 to 99",
"neopixel.hsl|param|s": "saturation from 0 to 99",
"neopixel.rgb": "Converts red, green, blue channels into a RGB color",
"neopixel.rgb|param|blue": "value of the blue channel between 0 and 255. eg: 255",
"neopixel.rgb|param|green": "value of the green channel between 0 and 255. eg: 255",
"neopixel.rgb|param|red": "value of the red channel between 0 and 255. eg: 255"
}
37 changes: 37 additions & 0 deletions _locales/neopixel-strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"NeoPixelColors.Black|block": "black",
"NeoPixelColors.Blue|block": "blue",
"NeoPixelColors.Green|block": "green",
"NeoPixelColors.Indigo|block": "indigo",
"NeoPixelColors.Orange|block": "orange",
"NeoPixelColors.Purple|block": "purple",
"NeoPixelColors.Red|block": "red",
"NeoPixelColors.Violet|block": "violet",
"NeoPixelColors.White|block": "white",
"NeoPixelColors.Yellow|block": "yellow",
"NeoPixelMode.RGBW|block": "RGB+W",
"NeoPixelMode.RGB_RGB|block": "RGB (RGB format)",
"NeoPixelMode.RGB|block": "RGB (GRB format)",
"neopixel.Strip.clear|block": "%strip|clear",
"neopixel.Strip.easeBrightness|block": "%strip|ease brightness",
"neopixel.Strip.length|block": "%strip|length",
"neopixel.Strip.power|block": "%strip|power (mA)",
"neopixel.Strip.range|block": "%strip|range from %start|with %length|leds",
"neopixel.Strip.rotate|block": "%strip|rotate pixels by %offset",
"neopixel.Strip.setBrightness|block": "%strip|set brightness %brightness",
"neopixel.Strip.setMatrixColor|block": "%strip|set matrix color at x %x|y %y|to %rgb=neopixel_colors",
"neopixel.Strip.setMatrixWidth|block": "%strip|set matrix width %width|rotation %rotation|chain %chain",
"neopixel.Strip.setPixelColor|block": "%strip|set pixel color at %pixeloffset|to %rgb=neopixel_colors",
"neopixel.Strip.setPixelWhiteLED|block": "%strip|set pixel white LED at %pixeloffset|to %white",
"neopixel.Strip.shift|block": "%strip|shift pixels by %offset",
"neopixel.Strip.showBarGraph|block": "%strip|show bar graph of %value|up to %high",
"neopixel.Strip.showColor|block": "%strip|show color %rgb=neopixel_colors",
"neopixel.Strip.showRainbow|block": "%strip|show rainbow from %startHue|to %endHue",
"neopixel.Strip.show|block": "%strip|show",
"neopixel.colors|block": "%color",
"neopixel.create|block": "NeoPixel at pin %pin|with %numleds|leds as %mode",
"neopixel.hsl|block": "hue %h|saturation %s|luminosity %l",
"neopixel.rgb|block": "red %red|green %green|blue %blue",
"neopixel|block": "neopixel",
"{id:category}Neopixel": "Neopixel"
}
47 changes: 47 additions & 0 deletions _locales/zh/Coolguy_advan_extension-jsdoc-strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"Coolguy_advan": "自定义图形块",
"Coolguy_advan.SoundSensor_AsrResult": "语音识别(文字对话)内容",
"Coolguy_advan.SoundSensor_End_conversation": "模块停止采集语音",
"Coolguy_advan.SoundSensor_Result_flag": "语音识别(文字对话)内容结果",
"Coolguy_advan.SoundSensor_SetMode": "模块模式设置",
"Coolguy_advan.SoundSensor_SetPort": "模块端口选择",
"Coolguy_advan.SoundSensor_SetWiFi": "模块帐号密码设置",
"Coolguy_advan.SoundSensor_SetWiFi|param|PASSWORD": "Key, eg: robotrobot",
"Coolguy_advan.SoundSensor_SetWiFi|param|SSID": "ID, eg: \"CoolGuyRobot\"",
"Coolguy_advan.SoundSensor_Start_conversation": "模块采集语音",
"Coolguy_advan.SoundSensor_TtsContent": "模块发送内容",
"Coolguy_advan.SoundSensor_Vocice_conversation": "按键对话",
"Coolguy_advan.SoundSensor_WaitInit": "模块初始化",
"Coolguy_advan.VisionSensor_Begin": "摄像头初始化",
"Coolguy_advan.VisionSensor_Detected": "摄像头检测(卡片)",
"Coolguy_advan.VisionSensor_Detected1": "摄像头检测",
"Coolguy_advan.iCloudMemory_Serial_Init": "WIFI模块初始化",
"Coolguy_advan.iCloudMemory_WiFi_SSIDPWD_Config": "WIFI模块设置",
"Coolguy_advan.iCloudMemory_WiFi_SSIDPWD_Config|param|PASSWORD": "Key, eg: robotrobot",
"Coolguy_advan.iCloudMemory_WiFi_SSIDPWD_Config|param|SSID": "ID, eg: \"CoolGuyRobot\"",
"Coolguy_advan.iCloudMemory_iCloudCommon_Read_Num": "WIFI模块从公共云地址读取数字",
"Coolguy_advan.iCloudMemory_iCloudCommon_Read_Num|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloudCommon_Read_Str": "WIFI模块从公共云地址读取字符串",
"Coolguy_advan.iCloudMemory_iCloudCommon_Read_Str|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloudShare_Write_num": "WIFI模块写数字到公共云地址",
"Coolguy_advan.iCloudMemory_iCloudShare_Write_num|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloudShare_Write_str": "WIFI模块写字符串到公共云地址",
"Coolguy_advan.iCloudMemory_iCloudShare_Write_str|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloud_Read_Float": "WIFI模块读取数字",
"Coolguy_advan.iCloudMemory_iCloud_Read_Float|param|MACaddr": "the adress of MAC, eg: \"2C3AE81ED2C1\"",
"Coolguy_advan.iCloudMemory_iCloud_Read_Float|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloud_Read_String": "WIFI模块读取字符串",
"Coolguy_advan.iCloudMemory_iCloud_Read_String|param|MACaddr": "the adress of MAC, eg: \"2C3AE81ED2C1\"",
"Coolguy_advan.iCloudMemory_iCloud_Read_String|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloud_Write_num": "WIFI模块写数字到云端",
"Coolguy_advan.iCloudMemory_iCloud_Write_num|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.iCloudMemory_iCloud_Write_str": "WIFI模块写字符串到云端",
"Coolguy_advan.iCloudMemory_iCloud_Write_str|param|addr": "the adress of iCloud, eg: 1",
"Coolguy_advan.wtr050_Init": "多路语音初始化",
"Coolguy_advan.wtr050_playvoice": "多路语音播放记录",
"Coolguy_advan.wtr050_playvoice|param|chan": "the channel of voice, eg: 1",
"Coolguy_advan.wtr050_recordstart": "多路语音开始记录",
"Coolguy_advan.wtr050_recordstart|param|chan": "the channel of voice, eg: 1",
"Coolguy_advan.wtr050_recordstop": "多路语音停止记录",
"Coolguy_advan.wtr050_stopvoice": "多路语音停止播放"
}
Loading

0 comments on commit 17a514a

Please sign in to comment.