associate related programChanged translations

This commit is contained in:
David Lechner
2021-01-18 18:56:02 -06:00
parent 5a66f041f2
commit f87f9b1b89
3 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -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}"
+2 -2
View File
@@ -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',
}
+2 -2
View File
@@ -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,
);