From 150442db0176fcffad9d133d151d71841ba51354 Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Mon, 23 Mar 2020 17:14:41 +0100 Subject: [PATCH] use translations in SearchResults component --- .../_new/features/SearchResults/SearchResults.vue | 8 ++++---- webapp/locales/de.json | 1 + webapp/locales/en.json | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/webapp/components/_new/features/SearchResults/SearchResults.vue b/webapp/components/_new/features/SearchResults/SearchResults.vue index a5e13d369..ede54f7ee 100644 --- a/webapp/components/_new/features/SearchResults/SearchResults.vue +++ b/webapp/components/_new/features/SearchResults/SearchResults.vue @@ -4,7 +4,7 @@
@@ -62,12 +62,12 @@ export default { return [ { type: 'Post', - title: `${this.posts.length} Posts`, + title: `${this.posts.length} ${this.$t('search.heading.Post')}`, disabled: !this.posts.length, }, { type: 'User', - title: `${this.users.length} Users`, + title: `${this.users.length} ${this.$t('search.heading.User')}`, disabled: !this.users.length, }, ] @@ -120,7 +120,7 @@ export default { width: 100%; max-width: 600px; background-color: transparent; - border: 1px solid $color-neutral-80; + border: $border-size-base solid $color-neutral-80; } } diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 524ee58fa..c22bbe785 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -602,6 +602,7 @@ "User": "Benutzer" }, "hint": "Wonach suchst Du?", + "no-results": "Keine Ergebnisse für \"{search}\" gefunden. Versuch' es mit einem anderen Begriff!", "placeholder": "Suchen" }, "settings": { diff --git a/webapp/locales/en.json b/webapp/locales/en.json index e6b8def5a..82250187f 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -602,6 +602,7 @@ "User": "Users" }, "hint": "What are you searching for?", + "no-results": "No results found for \"{search}\". Try a different search term!", "placeholder": "Search" }, "settings": {