Skip to content

Commit 5923175

Browse files
Merge branch 'main' of github.com:microbit-foundation/python-editor-v3 into beta-micropython
2 parents 6e97732 + 0e9d49e commit 5923175

File tree

106 files changed

+10140
-3248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+10140
-3248
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- run: npm ci
4040
env:
4141
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
- run: npm install --no-save @microbit-foundation/[email protected].43 @microbit-foundation/[email protected] @microbit-foundation/[email protected] @microbit-foundation/circleci-npm-package-versioner@1
42+
- run: npm install --no-save @microbit-foundation/[email protected].45 @microbit-foundation/[email protected] @microbit-foundation/[email protected] @microbit-foundation/circleci-npm-package-versioner@1
4343
if: github.repository_owner == 'microbit-foundation'
4444
env:
4545
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

bin/update-translations.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ $# -eq 0 ]; then
1515
exit 1
1616
fi
1717

18-
languages="ca de fr es-ES ja ko nl zh-CN zh-TW lol"
18+
languages="ca de es-ES fr ga-IE ja ko nl pl zh-CN zh-TW lol"
1919

2020
mkdir -p crowdin/translated
2121
for language in $languages; do

docs/tech-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ For the editor itself, run `npm run i18n:convert` to create `crowdin/ui.en.json`
143143

144144
This process assumes the language is already in Crowdin and has at least some translations.
145145

146-
When considering a new language it's worth checking early whether support is available in [lunr-languages](https://github.com/MihaiValentin/lunr-languages) as we need that support for our client-side search. Search is not currently supported for zh-CN and zh-TW due to the technical challenge of indexing those languages in the browser.
146+
When considering a new language it's worth checking early whether support is available in [lunr-languages](https://github.com/MihaiValentin/lunr-languages) as we need that support for our client-side search. Search is not currently supported for zh-CN and zh-TW due to the technical challenge of indexing those languages in the browser. ga-IE also lacks support in lunr-languages.
147147

148148
Steps:
149149

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<script type="text/javascript" id="crowdin-jipt-config">
4444
(function () {
4545
function escape() {
46-
window.location.href = "%VITE_FULL_URL";
46+
window.location.href = "%VITE_FULL_URL%";
4747
}
4848
window._jipt = [
4949
["project", "microbitorg"],

lang/ui.ca.json

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"defaultMessage": "Llegeix més sobre MicroPython",
2424
"description": "Aria label to expand a collapsed section about MicroPython"
2525
},
26+
"accessibility": {
27+
"defaultMessage": "Accessibilitat",
28+
"description": "Menu item for link to accessibility site"
29+
},
2630
"added-change": {
2731
"defaultMessage": "S'ha afegit el fitxer {changeName}",
2832
"description": "Change made to file"
@@ -211,6 +215,10 @@
211215
"defaultMessage": "Copia el programa",
212216
"description": "Copy code to clipboard action text"
213217
},
218+
"copy-snippet-advice": {
219+
"defaultMessage": "Codi copiat, fes servir enganxa per inserir-lo.",
220+
"description": "Toast shown when you copy from API or Reference snippets"
221+
},
214222
"create-action": {
215223
"defaultMessage": "Crea",
216224
"description": "Create action label (e.g. in create file dialog)"
@@ -511,7 +519,7 @@
511519
"description": "Text in the no micro:bit found dialog"
512520
},
513521
"offline-image-alt": {
514-
"defaultMessage": "Image unavailable offline",
522+
"defaultMessage": "La imatge no està disponible fora de línia",
515523
"description": "Alt text for an image placeholder when the user is offline"
516524
},
517525
"open-action": {
@@ -747,11 +755,11 @@
747755
"description": "Checkbox setting label"
748756
},
749757
"setting-warn-on-v2-only-features": {
750-
"defaultMessage": "Show warnings about V2-only features",
758+
"defaultMessage": "Mostra advertències sobre funcions només de la V2",
751759
"description": "Checkbox setting label"
752760
},
753761
"setting-warn-on-v2-only-features-info": {
754-
"defaultMessage": "Warnings are shown in the editor when a micro:bit V1 is connected",
762+
"defaultMessage": "Els avisos es mostren a l'editor quan es connecta un micro:bit V1",
755763
"description": "Checkbox setting label"
756764
},
757765
"settings": {
@@ -1118,12 +1126,16 @@
11181126
"defaultMessage": "Fitxer actualitzat {changeName}",
11191127
"description": "Change made to file"
11201128
},
1129+
"user-guide": {
1130+
"defaultMessage": "Guia de l'usuari",
1131+
"description": "Menu item for link to user guide site"
1132+
},
11211133
"visit-dot-org": {
11221134
"defaultMessage": "visita microbit.org (s'obre en una pestanya nova)",
11231135
"description": "alt text for logo link to .org"
11241136
},
11251137
"warn-on-v2-only-features-action": {
1126-
"defaultMessage": "Disable warnings about V2-only features",
1138+
"defaultMessage": "Desactiva els avisos sobre les funcions només de la V2",
11271139
"description": "Label for editor action"
11281140
},
11291141
"webusb-error-clear-connect-description-1": {
@@ -1135,15 +1147,15 @@
11351147
"description": "Part of WebUSB error message"
11361148
},
11371149
"webusb-error-clear-connect-title": {
1138-
"defaultMessage": "No es pot sol·licitar la interfície",
1150+
"defaultMessage": "Una altra pàgina o pestanya del navegador està connectada a aquesta micro:bit",
11391151
"description": "Title of error for WebUsb connection"
11401152
},
11411153
"webusb-error-default-title": {
11421154
"defaultMessage": "Error de WebUSB",
11431155
"description": "Default title for error messages relating to WebUSB"
11441156
},
11451157
"webusb-error-reconnect-microbit-description": {
1146-
"defaultMessage": "Torna a connectar la teva micro:bit i torna-ho a provar.",
1158+
"defaultMessage": "<p>Segueix aquests passos i, a continuació, torna-ho a provar:</p><ul><li>desendolla el cable USB</li><li>desendolla la bateria si n'hi ha cap connectada</li><li>torna a connectar el cable USB</li><li>torna a connectar la bateria si n'hi havia una</li></ul>",
11471159
"description": "Part of WebUSB error message"
11481160
},
11491161
"webusb-not-supported": {
@@ -1167,7 +1179,7 @@
11671179
"description": "Title for the welcome dialog"
11681180
},
11691181
"welcome-video-alt": {
1170-
"defaultMessage": "video introducing the Python Editor",
1182+
"defaultMessage": "vídeo de presentació de l'editor Python",
11711183
"description": "iframe title for the welcome video"
11721184
},
11731185
"zoom-in-action": {

lang/ui.de.json

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"defaultMessage": "Mehr über MicroPython lesen",
2424
"description": "Aria label to expand a collapsed section about MicroPython"
2525
},
26+
"accessibility": {
27+
"defaultMessage": "Barrierefreiheit",
28+
"description": "Menu item for link to accessibility site"
29+
},
2630
"added-change": {
2731
"defaultMessage": "Datei {changeName} hinzugefügt",
2832
"description": "Change made to file"
@@ -128,7 +132,7 @@
128132
"description": "Confirmation header of deletion of a file"
129133
},
130134
"confirm-replace-body": {
131-
"defaultMessage": "Alle Dateien durch die in der hex-Datei ersetzen?",
135+
"defaultMessage": "Alle Dateien durch die in der HEX-Datei ersetzen?",
132136
"description": "Confirmation message body for replacing project dialog"
133137
},
134138
"confirm-replace-reset": {
@@ -211,6 +215,10 @@
211215
"defaultMessage": "Code kopieren",
212216
"description": "Copy code to clipboard action text"
213217
},
218+
"copy-snippet-advice": {
219+
"defaultMessage": "Code kopiert. Füge ihn ein, um ihn zu verwenden.",
220+
"description": "Toast shown when you copy from API or Reference snippets"
221+
},
214222
"create-action": {
215223
"defaultMessage": "Erstellen",
216224
"description": "Create action label (e.g. in create file dialog)"
@@ -232,7 +240,7 @@
232240
"description": "Button text for delete action"
233241
},
234242
"delete-file-action": {
235-
"defaultMessage": "{name} löschen",
243+
"defaultMessage": "Lösche {name}",
236244
"description": "Menu option to delete file"
237245
},
238246
"deleted-file": {
@@ -475,7 +483,7 @@
475483
"description": "Header for name field"
476484
},
477485
"name-used-when": {
478-
"defaultMessage": "Der Name wird verwendet, wenn du die hex-Datei speicherst.",
486+
"defaultMessage": "Dieser Name wird verwendet, wenn du die HEX-Datei speicherst.",
479487
"description": "Text under project name field"
480488
},
481489
"new-file-hint": {
@@ -511,15 +519,15 @@
511519
"description": "Text in the no micro:bit found dialog"
512520
},
513521
"offline-image-alt": {
514-
"defaultMessage": "Image unavailable offline",
522+
"defaultMessage": "Bild offline nicht verfügbar",
515523
"description": "Alt text for an image placeholder when the user is offline"
516524
},
517525
"open-action": {
518526
"defaultMessage": "Öffnen",
519527
"description": "Open button text"
520528
},
521529
"open-file-action": {
522-
"defaultMessage": "Öffnen...",
530+
"defaultMessage": "Öffnen …",
523531
"description": "Open file button text"
524532
},
525533
"open-file-dropped": {
@@ -659,7 +667,7 @@
659667
"description": "Text for menu item for saving a project hex file"
660668
},
661669
"save-hover": {
662-
"defaultMessage": "Speichere die hex-Datei des Projektes auf deinem Computer",
670+
"defaultMessage": "Speichere die HEX-Datei des Projektes auf deinem Computer.",
663671
"description": "Hover text over save button"
664672
},
665673
"save-python-action": {
@@ -747,11 +755,11 @@
747755
"description": "Checkbox setting label"
748756
},
749757
"setting-warn-on-v2-only-features": {
750-
"defaultMessage": "Show warnings about V2-only features",
758+
"defaultMessage": "Warnungen über Nur-V2-Funktionen anzeigen",
751759
"description": "Checkbox setting label"
752760
},
753761
"setting-warn-on-v2-only-features-info": {
754-
"defaultMessage": "Warnings are shown in the editor when a micro:bit V1 is connected",
762+
"defaultMessage": "Warnungen werden im Editor angezeigt, wenn ein micro:bit V1 verbunden ist.",
755763
"description": "Checkbox setting label"
756764
},
757765
"settings": {
@@ -1118,12 +1126,16 @@
11181126
"defaultMessage": "Aktualisierte Datei {changeName}",
11191127
"description": "Change made to file"
11201128
},
1129+
"user-guide": {
1130+
"defaultMessage": "Benutzerhandbuch",
1131+
"description": "Menu item for link to user guide site"
1132+
},
11211133
"visit-dot-org": {
11221134
"defaultMessage": "besuche microbit.org (öffnet in neuen Tab)",
11231135
"description": "alt text for logo link to .org"
11241136
},
11251137
"warn-on-v2-only-features-action": {
1126-
"defaultMessage": "Disable warnings about V2-only features",
1138+
"defaultMessage": "Warnungen über Nur-V2-Funktionen deaktivieren",
11271139
"description": "Label for editor action"
11281140
},
11291141
"webusb-error-clear-connect-description-1": {
@@ -1135,15 +1147,15 @@
11351147
"description": "Part of WebUSB error message"
11361148
},
11371149
"webusb-error-clear-connect-title": {
1138-
"defaultMessage": "Schnittstelle konnte nicht beansprucht werden",
1150+
"defaultMessage": "Eine andere Seite oder ein Browser-Tab ist mit diesem micro:bit verbunden",
11391151
"description": "Title of error for WebUsb connection"
11401152
},
11411153
"webusb-error-default-title": {
11421154
"defaultMessage": "WebUSB-Fehler",
11431155
"description": "Default title for error messages relating to WebUSB"
11441156
},
11451157
"webusb-error-reconnect-microbit-description": {
1146-
"defaultMessage": "Bitte schließe deinen micro:bit erneut an und versuche es nochmal.",
1158+
"defaultMessage": "<p>Bitte folge diesen Schritten, dann versuche es erneut:</p><ul><li>trenne das USB-Kabel</li><li>entferne das Akku-Paket, wenn angeschlossen</li><li>verbinden das USB-Kabel erneut</li><li>verbinde das Akku-Paket erneut, wenn angeschlossen</li></ul>",
11471159
"description": "Part of WebUSB error message"
11481160
},
11491161
"webusb-not-supported": {
@@ -1167,7 +1179,7 @@
11671179
"description": "Title for the welcome dialog"
11681180
},
11691181
"welcome-video-alt": {
1170-
"defaultMessage": "video introducing the Python Editor",
1182+
"defaultMessage": "Videoeinführung des Python Editors",
11711183
"description": "iframe title for the welcome video"
11721184
},
11731185
"zoom-in-action": {

lang/ui.en.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"defaultMessage": "Read more about MicroPython",
2424
"description": "Aria label to expand a collapsed section about MicroPython"
2525
},
26+
"accessibility": {
27+
"defaultMessage": "Accessibility",
28+
"description": "Menu item for link to accessibility site"
29+
},
2630
"added-change": {
2731
"defaultMessage": "Added file {changeName}",
2832
"description": "Change made to file"
@@ -211,6 +215,10 @@
211215
"defaultMessage": "Copy code",
212216
"description": "Copy code to clipboard action text"
213217
},
218+
"copy-snippet-advice": {
219+
"defaultMessage": "Code copied, use paste to insert it.",
220+
"description": "Toast shown when you copy from API or Reference snippets"
221+
},
214222
"create-action": {
215223
"defaultMessage": "Create",
216224
"description": "Create action label (e.g. in create file dialog)"
@@ -1119,6 +1127,10 @@
11191127
"defaultMessage": "Updated file {changeName}",
11201128
"description": "Change made to file"
11211129
},
1130+
"user-guide": {
1131+
"defaultMessage": "User guide",
1132+
"description": "Menu item for link to user guide site"
1133+
},
11221134
"visit-dot-org": {
11231135
"defaultMessage": "visit microbit.org (opens in a new tab)",
11241136
"description": "alt text for logo link to .org"

lang/ui.es-es.json

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"defaultMessage": "Leer más sobre MicroPython",
2424
"description": "Aria label to expand a collapsed section about MicroPython"
2525
},
26+
"accessibility": {
27+
"defaultMessage": "Accesibilidad",
28+
"description": "Menu item for link to accessibility site"
29+
},
2630
"added-change": {
2731
"defaultMessage": "Archivo {changeName} añadido",
2832
"description": "Change made to file"
@@ -211,6 +215,10 @@
211215
"defaultMessage": "Copiar código",
212216
"description": "Copy code to clipboard action text"
213217
},
218+
"copy-snippet-advice": {
219+
"defaultMessage": "Código copiado, usa pegar para insertarlo.",
220+
"description": "Toast shown when you copy from API or Reference snippets"
221+
},
214222
"create-action": {
215223
"defaultMessage": "Crea",
216224
"description": "Create action label (e.g. in create file dialog)"
@@ -511,7 +519,7 @@
511519
"description": "Text in the no micro:bit found dialog"
512520
},
513521
"offline-image-alt": {
514-
"defaultMessage": "Image unavailable offline",
522+
"defaultMessage": "Imagen no disponible sin conexión",
515523
"description": "Alt text for an image placeholder when the user is offline"
516524
},
517525
"open-action": {
@@ -747,11 +755,11 @@
747755
"description": "Checkbox setting label"
748756
},
749757
"setting-warn-on-v2-only-features": {
750-
"defaultMessage": "Show warnings about V2-only features",
758+
"defaultMessage": "Mostrar advertencias sobre funciones exclusivas de la V2",
751759
"description": "Checkbox setting label"
752760
},
753761
"setting-warn-on-v2-only-features-info": {
754-
"defaultMessage": "Warnings are shown in the editor when a micro:bit V1 is connected",
762+
"defaultMessage": "Las advertencias se muestran en el editor cuando se conecta un micro:bit V1",
755763
"description": "Checkbox setting label"
756764
},
757765
"settings": {
@@ -1118,12 +1126,16 @@
11181126
"defaultMessage": "Archivo {changeName} actualizado",
11191127
"description": "Change made to file"
11201128
},
1129+
"user-guide": {
1130+
"defaultMessage": "Guía de usuario",
1131+
"description": "Menu item for link to user guide site"
1132+
},
11211133
"visit-dot-org": {
11221134
"defaultMessage": "visitar microbit.org (abre en una nueva pestaña)",
11231135
"description": "alt text for logo link to .org"
11241136
},
11251137
"warn-on-v2-only-features-action": {
1126-
"defaultMessage": "Disable warnings about V2-only features",
1138+
"defaultMessage": "Desactivar las advertencias sobre funciones exclusivas de la V2",
11271139
"description": "Label for editor action"
11281140
},
11291141
"webusb-error-clear-connect-description-1": {
@@ -1135,15 +1147,15 @@
11351147
"description": "Part of WebUSB error message"
11361148
},
11371149
"webusb-error-clear-connect-title": {
1138-
"defaultMessage": "No se ha podido solicitar interfaz",
1150+
"defaultMessage": "Otra página o pestaña del navegador está conectada a este micro:bit",
11391151
"description": "Title of error for WebUsb connection"
11401152
},
11411153
"webusb-error-default-title": {
11421154
"defaultMessage": "Error WebUSB",
11431155
"description": "Default title for error messages relating to WebUSB"
11441156
},
11451157
"webusb-error-reconnect-microbit-description": {
1146-
"defaultMessage": "Por favor reconecta el micro:bit e intentalo de nuevo.",
1158+
"defaultMessage": "<p>Por favor, sigue estos pasos y vuelve a intentarlo:</p><ul><li>desconecta el cable USB</li><li>desenchufa la batería si la tiene instalada</li><li>vuelve a conectar el cable USB</li><li>vuelve a conectar el paquete de baterías si estaba conectado</li></ul>",
11471159
"description": "Part of WebUSB error message"
11481160
},
11491161
"webusb-not-supported": {
@@ -1167,7 +1179,7 @@
11671179
"description": "Title for the welcome dialog"
11681180
},
11691181
"welcome-video-alt": {
1170-
"defaultMessage": "video introducing the Python Editor",
1182+
"defaultMessage": "vídeo de introducción al editor de Python",
11711183
"description": "iframe title for the welcome video"
11721184
},
11731185
"zoom-in-action": {

0 commit comments

Comments
 (0)