From e6a17b6aa1a3fe2c2d23cecff73f47eb1123f535 Mon Sep 17 00:00:00 2001
From: Nils Windisch <windisch@sub.uni-goettingen.de>
Date: Mon, 16 Aug 2021 09:34:33 +0200
Subject: [PATCH] chore: minor typo

---
 src/.vuepress/components/SearchPage.vue       | 6 +++++-
 src/.vuepress/components/SearchResultList.vue | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/.vuepress/components/SearchPage.vue b/src/.vuepress/components/SearchPage.vue
index df88f67..4c884fc 100644
--- a/src/.vuepress/components/SearchPage.vue
+++ b/src/.vuepress/components/SearchPage.vue
@@ -3,8 +3,11 @@
     <SearchInput @search="onSearchInput" />
     <!-- #TODO: add translation -->
     <p v-if="total > 0">
+      <!-- TODO: make string translable -->
       Found a total of <code class="font-weight-black">{{ total }}</code>
-      {{ 'Hit' | numerus(total) }} for <code class="font-weight-black">{{ query }}</code> in
+      <!-- TODO: make string translable -->
+      {{ 'hit' | numerus(total) }} for <code class="font-weight-black">{{ query }}</code> in
+      <!-- TODO: make string translable -->
       <code class="font-weight-black">{{ distinctSheets }}</code> {{ 'Sheet' | numerus(distinctSheets) }} and
       <code class="font-weight-black">{{ distinctManuscripts }}</code> {{ 'Manuscript' | numerus(distinctManuscripts) }}.
     </p>
@@ -129,6 +132,7 @@ export default {
           this.total = searchResponse.hits?.total?.matches || 0;
         }
 
+        // TODO: make string translable
         if (!this.invalid) this.message = `No search results found for <code>${this.query}</code>.`;
       } catch(error) {
           this.items = [];
diff --git a/src/.vuepress/components/SearchResultList.vue b/src/.vuepress/components/SearchResultList.vue
index c5e0c3d..6cb3258 100644
--- a/src/.vuepress/components/SearchResultList.vue
+++ b/src/.vuepress/components/SearchResultList.vue
@@ -18,7 +18,7 @@
             <v-list-item-subtitle class="d-flex mb-1 multiple-hits">
               <span v-for="(matchItem, i) in item.matches" :key="i" class="d-flex mb-1">
                 <!-- TODO: add translation -->
-                <span>{{ matchItem.occurrencesOnPage }} {{ matchItem.occurrencesOnPage === 1 ? 'Hit' : 'Hits' }} for <code>{{ matchItem.match }}</code></span>
+                <span>{{ matchItem.occurrencesOnPage }} {{ matchItem.occurrencesOnPage === 1 ? 'hit' : 'hits' }} for <code>{{ matchItem.match }}</code></span>
               </span>
             </v-list-item-subtitle>
             <!-- TODO: add translation -->
-- 
GitLab