location: de one and more numbers

This commit is contained in:
ogerly 2020-04-30 15:54:17 +02:00
parent c80f7d0518
commit 446fd18e3b
3 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@
<ds-section> <ds-section>
<ds-text class="search-results"> <ds-text class="search-results">
<strong>{{ searchCount }}</strong> <strong>{{ searchCount }}</strong>
{{ $t('search.results') }} {{ $t('search.results', {}, searchCount) }}
</ds-text> </ds-text>
</ds-section> </ds-section>
</div> </div>
@ -166,7 +166,7 @@ export default {
return [ return [
{ {
type: 'Post', type: 'Post',
title: `${this.postCount} ${this.$t('search.heading.Post')}`, title: `${this.postCount} ${this.$t('search.heading.Post', {}, this.postCount)}`,
disabled: this.postCount === 0, disabled: this.postCount === 0,
}, },
{ {
@ -176,7 +176,7 @@ export default {
}, },
{ {
type: 'Hashtag', type: 'Hashtag',
title: `${this.hashtagCount} ${this.$t('search.heading.Tag')}`, title: `${this.hashtagCount} ${this.$t('search.heading.Tag', {}, this.hashtagCount)}`,
disabled: this.hashtagCount === 0, disabled: this.hashtagCount === 0,
}, },
] ]

View File

@ -1,6 +1,6 @@
<template> <template>
<ds-heading soft size="h5" class="search-heading"> <ds-heading soft size="h5" class="search-heading">
{{ $t(`search.heading.${resourceType}`) }} {{ $t(`search.heading.${resourceType}`, {}, 2) }}
</ds-heading> </ds-heading>
</template> </template>
<script> <script>

View File

@ -590,12 +590,12 @@
"search": { "search": {
"failed": "Nichts gefunden", "failed": "Nichts gefunden",
"heading": { "heading": {
"Post": "Beiträge", "Post": "Beitrag ::: Beiträge",
"Tag": "Hashtags", "Tag": "Hashtag ::: Hashtags",
"User": "Benutzer" "User": "Benutzer"
}, },
"hint": "Wonach suchst Du?", "hint": "Wonach suchst Du?",
"results": "Ergebnisse gefunden", "results": "Ergebniss gefunden ::: Ergebnisse gefunden",
"no-results": "Keine Ergebnisse für \"{search}\" gefunden. Versuch' es mit einem anderen Begriff!", "no-results": "Keine Ergebnisse für \"{search}\" gefunden. Versuch' es mit einem anderen Begriff!",
"placeholder": "Suchen" "placeholder": "Suchen"
}, },