mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
associate related programChanged translations
This commit is contained in:
@@ -6,8 +6,10 @@
|
||||
"connectFailed": "Unexpected error while trying to connect. Check console log and report the error."
|
||||
},
|
||||
"editor": {
|
||||
"programChanged": "The program was changed in another window. Do you want to delete this program and replace it with the new program?",
|
||||
"yesReloadProgram": "Reload"
|
||||
"programChanged": {
|
||||
"message": "The program was changed in another window. Do you want to delete this program and replace it with the new program?",
|
||||
"action": "Reload"
|
||||
}
|
||||
},
|
||||
"mpy": {
|
||||
"error": "{errorMessage}"
|
||||
|
||||
@@ -8,9 +8,9 @@ export enum MessageId {
|
||||
BleGattPermission = 'ble.gattPermission',
|
||||
BleGattServiceNotFound = 'ble.gattServiceNotFound',
|
||||
BleNoWebBluetooth = 'ble.noWebBluetooth',
|
||||
ProgramChanged = 'editor.programChanged',
|
||||
ProgramChangedMessage = 'editor.programChanged.message',
|
||||
ProgramChangedAction = 'editor.programChanged.action',
|
||||
ServiceWorkerUpdateMessage = 'serviceWorker.update.message',
|
||||
ServiceWorkerUpdateAction = 'serviceWorker.update.action',
|
||||
YesReloadProgram = 'editor.yesReloadProgram',
|
||||
MpyError = 'mpy.error',
|
||||
}
|
||||
|
||||
@@ -201,9 +201,9 @@ function* showEditorStorageChanged(): Generator {
|
||||
|
||||
yield* showSingleton(
|
||||
Level.Info,
|
||||
MessageId.ProgramChanged,
|
||||
MessageId.ProgramChangedMessage,
|
||||
undefined,
|
||||
dispatchAction(MessageId.YesReloadProgram, ch.put, 'tick'),
|
||||
dispatchAction(MessageId.ProgramChangedAction, ch.put, 'tick'),
|
||||
ch.close,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user