mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
feat/no-results-ui: add translations to no results ui
This commit is contained in:
parent
79e08889f2
commit
c748a014a9
@ -3,7 +3,8 @@
|
||||
"featured": "Featured",
|
||||
"recently_added": "Recently added",
|
||||
"trending": "Trending",
|
||||
"surprise_me": "✨ Surprise me"
|
||||
"surprise_me": "✨ Surprise me",
|
||||
"no_results": "No results found"
|
||||
},
|
||||
"sidebar": {
|
||||
"catalogue": "Catalogue",
|
||||
|
@ -3,7 +3,8 @@
|
||||
"featured": "Destacado",
|
||||
"recently_added": "Recién Añadidos",
|
||||
"trending": "Tendencias",
|
||||
"surprise_me": "✨ ¡Sorpréndeme!"
|
||||
"surprise_me": "✨ ¡Sorpréndeme!",
|
||||
"no_results": "No se encontraron resultados"
|
||||
},
|
||||
"sidebar": {
|
||||
"catalogue": "Catálogo",
|
||||
|
@ -3,7 +3,8 @@
|
||||
"featured": "Destaque",
|
||||
"recently_added": "Novidades",
|
||||
"trending": "Populares",
|
||||
"surprise_me": "✨ Me surpreenda"
|
||||
"surprise_me": "✨ Me surpreenda",
|
||||
"no_results": "Nenhum resultado encontrado"
|
||||
},
|
||||
"sidebar": {
|
||||
"catalogue": "Catálogo",
|
||||
|
@ -7,10 +7,13 @@ import { InboxIcon } from "@primer/octicons-react";
|
||||
import { clearSearch } from "@renderer/features";
|
||||
import { useAppDispatch, useAppSelector } from "@renderer/hooks";
|
||||
import { vars } from "@renderer/theme.css";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import * as styles from "./catalogue.css";
|
||||
|
||||
export function SearchResults() {
|
||||
const { t } = useTranslation("catalogue");
|
||||
|
||||
const { results, isLoading } = useAppSelector((state) => state.search);
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
@ -51,7 +54,7 @@ export function SearchResults() {
|
||||
<div className={styles.noResults}>
|
||||
<InboxIcon size={56} />
|
||||
|
||||
<p>Nenhum resultado encontrado</p>
|
||||
<p>{t('no_results')}</p>
|
||||
</div>
|
||||
)}
|
||||
</main>
|
||||
|
Loading…
Reference in New Issue
Block a user