FEATURE: Add hamburger menu link
This commit is contained in:
parent
5d0da1fe0a
commit
274e0134cc
|
@ -0,0 +1,15 @@
|
||||||
|
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "setup-knowledge-explorer",
|
||||||
|
initialize() {
|
||||||
|
withPluginApi("0.8", api => {
|
||||||
|
api.decorateWidget("hamburger-menu:generalLinks", () => {
|
||||||
|
return {
|
||||||
|
route: "knowledgeExplorer",
|
||||||
|
label: "knowledge_explorer.title"
|
||||||
|
};
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
|
@ -1,6 +1,7 @@
|
||||||
en:
|
en:
|
||||||
js:
|
js:
|
||||||
knowledge_explorer:
|
knowledge_explorer:
|
||||||
|
title: "Knowledge Explorer"
|
||||||
search:
|
search:
|
||||||
results:
|
results:
|
||||||
one: "%{count} result found"
|
one: "%{count} result found"
|
||||||
|
|
Loading…
Reference in New Issue