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