FEATURE: Add hamburger menu link

This commit is contained in:
Justin DiRose 2019-10-03 13:57:45 -05:00
parent 5d0da1fe0a
commit 274e0134cc
2 changed files with 16 additions and 0 deletions

View File

@ -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"
};
});
});
}
};

View File

@ -1,6 +1,7 @@
en:
js:
knowledge_explorer:
title: "Knowledge Explorer"
search:
results:
one: "%{count} result found"