Skip to content

Commit d3e5dce

Browse files
author
Alberto Iannaccone
committed
Add privacy policy menu item
1 parent e6b9d4e commit d3e5dce

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

arduino-ide-extension/src/browser/contributions/help.ts

+13
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ export class Help extends Contribution {
8484
Help.Commands.VISIT_ARDUINO,
8585
createOpenHandler('https://www.arduino.cc/')
8686
);
87+
registry.registerCommand(
88+
Help.Commands.PRIVACY_POLICY,
89+
createOpenHandler('https://www.arduino.cc/en/privacy-policy')
90+
);
8791
}
8892

8993
registerMenus(registry: MenuModelRegistry): void {
@@ -120,6 +124,10 @@ export class Help extends Contribution {
120124
commandId: IDEUpdaterCommands.CHECK_FOR_UPDATES.id,
121125
order: '7',
122126
});
127+
registry.registerMenuAction(ArduinoMenus.HELP__FIND_GROUP, {
128+
commandId: Help.Commands.PRIVACY_POLICY.id,
129+
order: '8',
130+
});
123131
}
124132

125133
registerKeybindings(registry: KeybindingRegistry): void {
@@ -167,5 +175,10 @@ export namespace Help {
167175
label: nls.localize('arduino/help/visit', 'Visit Arduino.cc'),
168176
category: 'Arduino',
169177
};
178+
export const PRIVACY_POLICY: Command = {
179+
id: 'arduino-privacy-policy',
180+
label: nls.localize('arduino/help/privacyPolicy', 'Privacy Policy'),
181+
category: 'Arduino',
182+
};
170183
}
171184
}

i18n/en.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@
238238
"reference": "Reference",
239239
"findInReference": "Find in Reference",
240240
"faq": "Frequently Asked Questions",
241-
"visit": "Visit Arduino.cc"
241+
"visit": "Visit Arduino.cc",
242+
"privacyPolicy": "Privacy Policy"
242243
},
243244
"certificate": {
244245
"uploadRootCertificates": "Upload SSL Root Certificates",

0 commit comments

Comments
 (0)