« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateSearchSidebarBox.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/content/dependencies/generateSearchSidebarBox.js b/src/content/dependencies/generateSearchSidebarBox.js
index 6632a4e8..d4d6b4e0 100644
--- a/src/content/dependencies/generateSearchSidebarBox.js
+++ b/src/content/dependencies/generateSearchSidebarBox.js
@@ -1,21 +1,27 @@
 export default {
   contentDependencies: ['generatePageSidebarBox'],
-  extraDependencies: ['html'],
+  extraDependencies: ['html', 'language'],
 
   relations: (relation) => ({
     sidebarBox:
       relation('generatePageSidebarBox'),
   }),
 
-  generate: (relations, {html}) =>
+  generate: (relations, {html, language}) =>
     relations.sidebarBox.slots({
       attributes: {class: 'wiki-search-sidebar-box'},
       collapsible: false,
 
       content: [
         html.tag('input', {class: 'wiki-search-input'},
-          {placeholder: `Search for anything`},
-          {type: 'search'})
+          {
+            placeholder:
+              language.$('misc.search.placeholder').toString(),
+          },
+          {type: 'search'}),
+
+        html.tag('template', {class: 'wiki-search-no-results-string'},
+          language.$('misc.search.noResults')),
       ],
     }),
 };