Skip to content

Commit a6e1752

Browse files
authored
Use brand and help url from config (#1008)
1 parent 3d2006c commit a6e1752

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/i18n/strings/en_EN.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"Minimize": "Minimize",
2525
"Close": "Close",
2626
"Help": "Help",
27-
"Element Help": "Element Help",
27+
"%(brand)s Help": "%(brand)s Help",
2828
"About": "About",
2929
"Services": "Services",
3030
"Hide": "Hide",

src/vectormenu.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ export function buildMenuTemplate(): Menu {
137137
role: "help",
138138
submenu: [
139139
{
140-
label: _t("Element Help"),
140+
// XXX: vectorConfig won't have defaults applied to it so we need to duplicate them here
141+
label: _t("%(brand)s Help", { brand: global.vectorConfig?.brand || "Element" }),
141142
click(): void {
142-
shell.openExternal("https://element.io/help");
143+
shell.openExternal(global.vectorConfig?.help_url || "https://element.io/help");
143144
},
144145
},
145146
],

0 commit comments

Comments
 (0)