Skip to content

Commit

Permalink
feat: tips for empty search result (elk-zone#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hongbusi authored Jan 9, 2023
1 parent 7c83bd0 commit 509eec5
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 9 deletions.
3 changes: 3 additions & 0 deletions components/search/SearchWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ const activate = () => {
:result="result"
:tabindex="focused ? 0 : -1"
/>
<span v-if="query.length !== 0 && results.length === 0" block text-center text-sm text-secondary>
{{ t('search.search_empty') }}
</span>
</template>
<div v-else>
<SearchResultSkeleton />
Expand Down
3 changes: 2 additions & 1 deletion locales/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@
"replying": "Antworten"
},
"search": {
"search_desc": "Suche nach Accounts & Hashtags"
"search_desc": "Suche nach Accounts & Hashtags",
"search_empty": "Nichts für diese Suchbegriffe gefunden"
},
"settings": {
"about": {
Expand Down
3 changes: 2 additions & 1 deletion locales/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
"update_available_short": "Update Elk"
},
"search": {
"search_desc": "Search for people & hashtags"
"search_desc": "Search for people & hashtags",
"search_empty": "Could not find anything for these search terms"
},
"settings": {
"about": {
Expand Down
3 changes: 2 additions & 1 deletion locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@
}
},
"search": {
"search_desc": "Search for people & hashtags"
"search_desc": "Search for people & hashtags",
"search_empty": "Could not find anything for these search terms"
},
"settings": {
"about": {
Expand Down
3 changes: 2 additions & 1 deletion locales/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@
}
},
"search": {
"search_desc": "Buscar personas y etiquetas"
"search_desc": "Buscar personas y etiquetas",
"search_empty": "No se pudo encontrar nada para estos términos de búsqueda"
},
"settings": {
"about": {
Expand Down
3 changes: 2 additions & 1 deletion locales/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@
}
},
"search": {
"search_desc": "Recherche de personnes & hashtags"
"search_desc": "Recherche de personnes & hashtags",
"search_empty": "Aucun résultat avec ces mots-clefs"
},
"settings": {
"about": {
Expand Down
3 changes: 2 additions & 1 deletion locales/nl-NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@
"update_available_short": "Update Elk"
},
"search": {
"search_desc": "Zoek naar mensen & hashtags"
"search_desc": "Zoek naar mensen & hashtags",
"search_empty": "Deze zoektermen leveren geen resultaat op"
},
"settings": {
"about": {
Expand Down
3 changes: 2 additions & 1 deletion locales/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@
"update_available_short": "Оновити Elk"
},
"search": {
"search_desc": "Пошук користувачів та хештеґів"
"search_desc": "Пошук користувачів та хештеґів",
"search_empty": "Не вдалося знайти нічого, що відповідає цим пошуковим термінам"
},
"settings": {
"about": {
Expand Down
3 changes: 2 additions & 1 deletion locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@
}
},
"search": {
"search_desc": "搜索用户或话题标签"
"search_desc": "搜索用户或话题标签",
"search_empty": "无法找到符合这些搜索词的任何内容"
},
"settings": {
"about": {
Expand Down
3 changes: 2 additions & 1 deletion locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@
"update_available_short": "更新鹿鳴"
},
"search": {
"search_desc": "搜索用戶或話題標籤"
"search_desc": "搜索用戶或話題標籤",
"search_empty": "無法找到符合搜尋條件之結果"
},
"settings": {
"about": {
Expand Down

0 comments on commit 509eec5

Please sign in to comment.