pxt-microbit 5.1.2 → 5.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/sim-strings.json +1 -17
- package/built/sim.js +1 -1
- package/built/target-strings.json +1 -57
- package/built/target.js +1 -44155
- package/built/target.json +1 -44155
- package/built/targetlight.json +1 -408
- package/built/theme.json +1 -2311
- package/built/web/blockly.css +1 -1
- package/built/web/react-common-authcode.css +4 -6777
- package/built/web/react-common-multiplayer.css +13 -0
- package/built/web/react-common-skillmap.css +1 -1
- package/built/web/rtlblockly.css +1 -1
- package/built/web/rtlreact-common-authcode.css +13 -0
- package/built/web/rtlreact-common-multiplayer.css +13 -0
- package/built/web/rtlreact-common-skillmap.css +1 -1
- package/built/web/rtlsemantic.css +2 -2
- package/built/web/semantic.css +2 -2
- package/docs/device/v2.md +1 -1
- package/docs/extensions.md +32 -0
- package/docs/microcode.md +27 -0
- package/docs/projects/SUMMARY.md +6 -0
- package/docs/projects/electric-guitar/code.md +42 -0
- package/docs/projects/electric-guitar/make.md +40 -0
- package/docs/projects/electric-guitar.md +27 -0
- package/docs/projects/jonnys-bird.md +110 -0
- package/docs/projects/music.md +10 -0
- package/docs/projects/red-light-green-light.md +1 -1
- package/docs/projects.md +6 -0
- package/docs/reference/music/beat.md +1 -7
- package/docs/reference/music/change-tempo-by.md +5 -3
- package/docs/reference/music/play-tone.md +28 -15
- package/docs/reference/music/rest.md +28 -10
- package/docs/reference/music/ring-tone.md +7 -6
- package/docs/reference/music/set-tempo.md +7 -3
- package/docs/translate.md +53 -22
- package/docs/windows-app.md +3 -3
- package/package.json +2 -2
- package/pxtarget.json +3 -4
- package/targetconfig.json +11 -2
package/docs/translate.md
CHANGED
|
@@ -4,24 +4,32 @@
|
|
|
4
4
|
|
|
5
5
|
### ~ hint
|
|
6
6
|
|
|
7
|
+
#### Help translate
|
|
8
|
+
|
|
7
9
|
Looking to help translate the site for **[microbit.org](http://microbit.org)**? Try http://translate.microbit.org/ to help the Microbit Foundation!
|
|
8
10
|
|
|
9
11
|
### ~
|
|
10
12
|
|
|
11
13
|
## #target-files
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
When you select your language from the [MakeCode](https://crowdin.com/project/makecode) project home page, you'll find all of the localization files for MakeCode shown in a folder tree. The strings to translate for the @boardname@ are found in the files under the **microbit** folder for the current language.
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+

|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
* [strings.json](https://crowdin.com/translate/kindscript/32/en-en) - Strings common and shared by all MakeCode editors
|
|
19
|
+
Localization files are present in two different forms, JSON and markdown. The JSON files (those you see with the **.json** ending in their names) contain localizable strings related to both the editor UI and the text shown on the programming code blocks. All of the markdown files (those with **.md** at the end of their names) are documents for reference, projects, tutorials, help information, etc.
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
The files listed in the following sections provide a guide to how each of the translation files and folders relate to the **MakeCode for @boardname@** editor. The links here are to the [English](https://crowdin.com/project/kindscript/en#) source files just to show you the location of the files in the folder structure. Of course, you will translate in your selected language instead.
|
|
22
|
+
|
|
23
|
+
### Editor
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
There a a few files that are specific to the MakeCode editor itself. These contain strings for the editor UI and the simulator. They are essential to translate and should be prioritized before the other files.
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
| File | Description |
|
|
28
|
+
| - | - |
|
|
29
|
+
| [strings.json](https://crowdin.com/translate/kindscript/32/en-en) | Common strings that shared by all MakeCode editors<br><br/>**Note**: This file is located at the MakeCode project's root folder<br/>rather than under **microbit** |
|
|
30
|
+
| [target-strings.json](https://crowdin.com/translate/kindscript/1922/en-en) | Strings custom to the @boardname@ editor interface |
|
|
31
|
+
| [sim-strings.json](https://crowdin.com/translate/makecode/1923/en-en) | Strings for the @boardname@ simulator |
|
|
32
|
+
<br/>
|
|
25
33
|
|
|
26
34
|
This is an example of the editor with it's interface elements localized:
|
|
27
35
|
|
|
@@ -29,26 +37,49 @@ This is an example of the editor with it's interface elements localized:
|
|
|
29
37
|
|
|
30
38
|
### Blocks
|
|
31
39
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
The strings for the programming code blocks all have names in the form of '_name_-strings.json' and '_name_-jsdoc-strings.json'. The _name_ part of the filename often refers to which set of blocks or the extension tht the blocks come from.
|
|
41
|
+
|
|
42
|
+
| File | Description |
|
|
43
|
+
| - | - |
|
|
44
|
+
| [core-jsdoc-strings.json](https://crowdin.com/translate/kindscript/66/en-en) | Description text for code elements of the [basic](/reference/basic) and core [blocks](/blocks)<br/><br/>**Note**: this file contains strings for the fundamental set of coding<br/>blocks and should be prioritized over the other strings files for blocks |
|
|
45
|
+
| [core-strings.json](https://crowdin.com/translate/kindscript/65/en-en) | Display text for the [basic](/reference/basic) and core [blocks](/reference/blocks)<br/><br/>**Note**: this file contains strings for the fundamental set of coding<br/>blocks and should be prioritized over the other strings files for blocks |
|
|
46
|
+
| [radio-jsdoc-strings.json](https://crowdin.com/translate/kindscript/64/en-en) | Description text for code elements of the [radio](/reference/radio) blocks |
|
|
47
|
+
| [radio-strings.json](https://crowdin.com/translate/kindscript/63/en-en) | Display text for the [radio](/reference/radio) blocks |
|
|
48
|
+
| [radio-broadcast-jsdoc-strings.json](https://crowdin.com/translate/kindscript/5032/en-en) | Description text for code elements of the radio broadcast blocks |
|
|
49
|
+
| [radio-broadcast-strings.json](https://crowdin.com/translate/kindscript/5030/en-en) | Display text for the radio broadcast blocks |
|
|
50
|
+
| [servo-jsdoc-strings.json](https://crowdin.com/translate/kindscript/5036/en-en) | Description text for code elements of the [servo](/reference/servos) blocks |
|
|
51
|
+
| [servo-strings.json](https://crowdin.com/translate/kindscript/5034/en-ens) | Display text for the [servo](/reference/servos) blocks |
|
|
52
|
+
| [bluetooth-jsdoc-strings.json](https://crowdin.com/translate/kindscript/60/en-en) | Description text for code elements of the [bluetooth](/reference/bluetooth) blocks
|
|
53
|
+
| [bluetooth-strings.json](https://crowdin.com/translate/kindscript/59/en-en) | Display text for the [bluetooth](/reference/bluetooth) blocks |
|
|
54
|
+
| [devices-jsdoc-strings.json](https://crowdin.com/translate/makecode/62/en-en) | Description text for code elements of the _connected devices_ blocks |
|
|
55
|
+
| [devices-strings.json](https://crowdin.com/translate/makecode/61/en-en) | Display text for the _connected devices_ blocks |
|
|
56
|
+
| [flashlog-jsdoc-strings.json](https://crowdin.com/translate/kindscript/60/en-en) | Description text for code elements of the _flashlog_ blocks |
|
|
57
|
+
| [flashlog-strings.json](https://crowdin.com/translate/kindscript/59/en-en) | Display text for the _flashlog_ blocks |
|
|
58
|
+
| [datalogger-jsdoc-strings.json](https://crowdin.com/translate/kindscript/11254/en-en) | Description text for code elements of the [datalogger](/reference/datalogger) blocks |
|
|
59
|
+
| [datalogger-strings.json](https://crowdin.com/translate/kindscript/11252/en-en) | Display text for the [datalogger](/reference/datalogger) blocks |
|
|
60
|
+
| [jacdac-jsdoc-strings.json](https://crowdin.com/translate/kindscript/7862/en-en) | Description text for code elements of the _jacdac_ blocks
|
|
61
|
+
| [jacdac-strings.json](https://crowdin.com/translate/kindscript/7860/en-en) | Display text for the _jacdac_ blocks |
|
|
62
|
+
| [color-jsdoc-strings.json](https://crowdin.com/translate/kindscript/11836/en-en) | Description text for code elements of the _color_ blocks
|
|
63
|
+
| [color-strings.json](https://crowdin.com/translate/kindscript/11834/en-en) | Display text for the _color_ blocks |
|
|
64
|
+
| [microphone-jsdoc-strings.json](https://crowdin.com/translate/kindscript/10230/en-en) | Description text for code elements of the _microphone_ blocks
|
|
65
|
+
| [microphone-strings.json](https://crowdin.com/translate/kindscript/10228/en-en) | Display text for the _microphone_ blocks |
|
|
66
|
+
| [settings-jsdoc-strings.json](https://crowdin.com/translate/kindscript/10872/en-en) | Description text for code elements of the _settings_ blocks
|
|
67
|
+
| [settings-strings.json](https://crowdin.com/translate/kindscript/10870/en-en) | Display text for the _settings_ blocks |
|
|
68
|
+
<br/>
|
|
69
|
+
|
|
70
|
+
Here are some examples of translated blocks:
|
|
46
71
|
|
|
47
72
|

|
|
48
73
|
|
|
49
74
|
### Document pages
|
|
50
75
|
|
|
51
|
-
|
|
76
|
+
Document pages contain the text for any markdown page available on the MakeCode editor site. These include code block reference, projects, tutorials, how to information, etc.
|
|
77
|
+
|
|
78
|
+
| File | Description |
|
|
79
|
+
| - | - |
|
|
80
|
+
| [docs](https://crowdin.com/translate/kindscript/en#/microbit/docs) | Documentation pages for projects, courses, lessons, and code block reference |
|
|
81
|
+
| [libs](https://crowdin.com/translate/kindscript/en#/microbit/libs) | Documentation pages for code block reference and other information related to <br/> built-in extensions like _servo_ and _datalogger_ |
|
|
82
|
+
<br/>
|
|
52
83
|
|
|
53
84
|
Here's an example of a translated document page for a course lesson:
|
|
54
85
|
|
package/docs/windows-app.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Windows App Deprecation
|
|
2
2
|
|
|
3
|
-
The Windows app
|
|
3
|
+
The original MakeCode for micro:bit Windows app has been deprecated. For continued support, please use our new app: https://apps.microsoft.com/store/detail/microsoft-makecode-for-microbit/9NMQDQ2XZKWK
|
|
4
4
|
|
|
5
5
|
## Moving Projects
|
|
6
6
|
|
|
7
|
-
If you want to keep the projects you saved with the app and use them again in the
|
|
7
|
+
If you want to keep the projects you saved with the old app and use them again in the new app, you will need to transfer them.
|
|
8
8
|
|
|
9
9
|
1. Share the project from the app using the **Share** option.
|
|
10
10
|
2. Copy the shared project URL that the app gives you.
|
|
11
|
-
3. On the MakeCode
|
|
11
|
+
3. On the new MakeCode app homepage, click on **Import** to open the shared project with the URL you just copied.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pxt-microbit",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "micro:bit target for Microsoft MakeCode (PXT)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"JavaScript",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"pxt-common-packages": "10.0.1",
|
|
48
|
-
"pxt-core": "8.
|
|
48
|
+
"pxt-core": "8.6.10"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/pxtarget.json
CHANGED
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"githubCorePackage": "lancaster-university/microbit",
|
|
143
143
|
"gittag": "v2.2.0-rc6",
|
|
144
144
|
"serviceId": "microbit",
|
|
145
|
-
"dockerImage": "pext/yotta:
|
|
145
|
+
"dockerImage": "pext/yotta:update-yotta3"
|
|
146
146
|
},
|
|
147
147
|
"multiVariants": [
|
|
148
148
|
"mbdal",
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"githubCorePackage": "lancaster-university/microbit-v2-samples",
|
|
173
173
|
"gittag": "v0.2.11",
|
|
174
174
|
"serviceId": "mbcodal2",
|
|
175
|
-
"dockerImage": "pext/yotta:
|
|
175
|
+
"dockerImage": "pext/yotta:update-yotta3",
|
|
176
176
|
"yottaConfigCompatibility": true
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -607,8 +607,7 @@
|
|
|
607
607
|
"incompatibleHardwareImage": "/static/download/incompatible.png"
|
|
608
608
|
},
|
|
609
609
|
"winAppDeprImage": "/static/winapp.PNG",
|
|
610
|
-
"showWinAppDeprBanner": false
|
|
611
|
-
"legacyTutorial": true
|
|
610
|
+
"showWinAppDeprBanner": false
|
|
612
611
|
},
|
|
613
612
|
"queryVariants": {
|
|
614
613
|
"hidemenu": {
|
package/targetconfig.json
CHANGED
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
"sparkfun/pxt-weather-bit": { "tags": [ "Science" ] },
|
|
436
436
|
"sparkfun/pxt-gator-environment": {
|
|
437
437
|
"tags": [ "Science" ],
|
|
438
|
-
"upgrades": [ "
|
|
438
|
+
"upgrades": [ "min:v1.1.2" ]
|
|
439
439
|
},
|
|
440
440
|
"minodekit/pxt-minode": {
|
|
441
441
|
"tags": [ "Science" ],
|
|
@@ -766,8 +766,16 @@
|
|
|
766
766
|
"dfrobot/pxt-dfrobot_environment_science": {},
|
|
767
767
|
"ekkai/aicococam": {},
|
|
768
768
|
"elecfreaks/pxt-xgo": {},
|
|
769
|
+
"joy-it/pxt-rfid-mfrc522": { "tags": [ "Science" ] },
|
|
769
770
|
"dfrobot/pxt-dfrobot_iot_cloud_kit": { "tags": [ "Networking" ] },
|
|
770
|
-
"plenprojectcompany/pxt-plenbit_full": { "tags": [ "Robotics" ] }
|
|
771
|
+
"plenprojectcompany/pxt-plenbit_full": { "tags": [ "Robotics" ] },
|
|
772
|
+
"bsiever/microbit-pxt-clicks": { "tags": [ "Software" ] },
|
|
773
|
+
"joy-it/pxt-ads1115": { "tags": [ "Science" ] },
|
|
774
|
+
"bsiever/microbit-pxt-rotate": { "tags": [ "Software" ] },
|
|
775
|
+
"sparkfun/pxt-gator-uv": { "tags": [ "Science" ] },
|
|
776
|
+
"dfrobot/pxt-dfrobot_bosonkit": { "tags": [ "Science" ] },
|
|
777
|
+
"resolute-support/pxt-apprentice_car": { "tags": [ "Robotics" ] },
|
|
778
|
+
"makeandlearn/pxt-didacbot": { "tags": [ "Robotics" ] }
|
|
771
779
|
},
|
|
772
780
|
"upgrades": {
|
|
773
781
|
"tinkertanker/pxt-iot-environment-kit": "min:v4.2.1",
|
|
@@ -830,6 +838,7 @@
|
|
|
830
838
|
"Blocks to JavaScript": "courses/blocks-to-javascript",
|
|
831
839
|
"Courses": "courses",
|
|
832
840
|
"Jacdac": "jacdac",
|
|
841
|
+
"MicroCode for the new micro:bit (V2)": "microcode",
|
|
833
842
|
"Behind the MakeCode Hardware": {
|
|
834
843
|
"url": "behind-the-makecode-hardware",
|
|
835
844
|
"youTube": true
|