dialogs - make sure to put mnemonics for button labels

This commit is contained in:
Benjamin Pasero
2020-10-14 10:52:57 +02:00
parent d9b04426ef
commit eb8e1815a3
6 changed files with 15 additions and 13 deletions

View File

@@ -288,8 +288,8 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
type: 'warning',
message: localize('sync in progress', "Settings Sync is being turned on. Would you like to cancel it?"),
title: localize('settings sync', "Settings Sync"),
primaryButton: localize('yes', "Yes"),
secondaryButton: localize('no', "No"),
primaryButton: localize({ key: 'yes', comment: ['&& denotes a mnemonic'] }, "&&Yes"),
secondaryButton: localize({ key: 'no', comment: ['&& denotes a mnemonic'] }, "&&No"),
});
if (result.confirmed) {
await manualSyncTask.stop();
@@ -429,7 +429,7 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
message: localize('reset', "This will clear your data in the cloud and stop sync on all your devices."),
title: localize('reset title', "Clear"),
type: 'info',
primaryButton: localize('reset button', "Reset"),
primaryButton: localize({ key: 'resetButton', comment: ['&& denotes a mnemonic'] }, "&&Reset"),
});
if (result.confirmed) {
await this.userDataSyncService.resetRemote();