Skip to content
Snippets Groups Projects
Commit e6a17b6a authored by Nils Windisch's avatar Nils Windisch :coffee:
Browse files

chore: minor typo

parent 7bd6d45a
No related branches found
No related tags found
1 merge request!50hits per sheet optimisation
Pipeline #220818 passed
......@@ -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 = [];
......
......@@ -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 -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment