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

View File

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

View File

@ -590,12 +590,12 @@
"search": {
"failed": "Nichts gefunden",
"heading": {
"Post": "Beiträge",
"Tag": "Hashtags",
"Post": "Beitrag ::: Beiträge",
"Tag": "Hashtag ::: Hashtags",
"User": "Benutzer"
},
"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!",
"placeholder": "Suchen"
},