From 9314b17d4deb9d68b6e042523a43368f9bc75162 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Sun, 16 Feb 2025 01:24:30 +0000 Subject: [PATCH] feat: updating translations --- src/locales/en/translation.json | 5 ++-- src/locales/pt-BR/translation.json | 5 ++-- .../src/components/sidebar/sidebar.tsx | 20 ++++++++----- .../src/context/settings/settings.context.tsx | 2 +- src/renderer/src/hooks/use-feature.ts | 3 +- src/renderer/src/pages/settings/settings.tsx | 30 ++++++++++++------- 6 files changed, 40 insertions(+), 25 deletions(-) diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 0d856f75..6b2376f7 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -189,9 +189,10 @@ "download_error_gofile_quota_exceeded": "You have exceeded your Gofile monthly quota. Please await the quota to reset.", "download_error_real_debrid_account_not_authorized": "Your Real-Debrid account is not authorized to make new downloads. Please check your account settings and try again.", "download_error_not_cached_in_real_debrid": "This download is not available on Real-Debrid and polling download status from Real-Debrid is not yet available.", - "download_error_not_cached_in_torbox": "This download is not available on Torbox and polling download status from Torbox is not yet available." + "download_error_not_cached_in_torbox": "This download is not available on Torbox and polling download status from Torbox is not yet available.", + "game_removed_from_favorites": "Game removed from favorites", + "game_added_to_favorites": "Game added to favorites" }, - "activation": { "title": "Activate Hydra", "installation_id": "Installation ID:", diff --git a/src/locales/pt-BR/translation.json b/src/locales/pt-BR/translation.json index 6394ed95..a470e628 100644 --- a/src/locales/pt-BR/translation.json +++ b/src/locales/pt-BR/translation.json @@ -179,9 +179,10 @@ "download_error_gofile_quota_exceeded": "Você excedeu sua cota mensal do Gofile. Por favor, aguarde a cota resetar.", "download_error_real_debrid_account_not_authorized": "Sua conta do Real-Debrid não está autorizada a fazer novos downloads. Por favor, verifique sua assinatura e tente novamente.", "download_error_not_cached_in_real_debrid": "Este download não está disponível no Real-Debrid e a verificação do status do download não está disponível.", - "download_error_not_cached_in_torbox": "Este download não está disponível no Torbox e a verificação do status do download não está disponível." + "download_error_not_cached_in_torbox": "Este download não está disponível no Torbox e a verificação do status do download não está disponível.", + "game_removed_from_favorites": "Jogo removido dos favoritos", + "game_added_to_favorites": "Jogo adicionado aos favoritos" }, - "activation": { "title": "Ativação", "installation_id": "ID da instalação:", diff --git a/src/renderer/src/components/sidebar/sidebar.tsx b/src/renderer/src/components/sidebar/sidebar.tsx index a9139fdb..7584775a 100644 --- a/src/renderer/src/components/sidebar/sidebar.tsx +++ b/src/renderer/src/components/sidebar/sidebar.tsx @@ -167,6 +167,10 @@ export function Sidebar() { } }; + const favoriteGames = useMemo(() => { + return sortedLibrary.filter((game) => game.favorite); + }, [sortedLibrary]); + return (