From c24523e8e66185990e4dfdc6a390e653bd271f1c Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Fri, 5 Jul 2024 12:18:37 -0300 Subject: [PATCH] feat: update i18n --- src/locales/en/translation.json | 4 ++-- src/locales/pt/translation.json | 4 ++-- src/main/services/notifications.ts | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index a884ecc2..e6dc6b50 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -200,8 +200,8 @@ "repack_list_updated": "Repack list updated", "repack_count_one": "{{count}} repack added", "repack_count_other": "{{count}} repacks added", - "new_version_available": "New Hydra version available", - "restart_to_install_new_version": "Restart Hydra to install the new version" + "new_update_available": "New update available", + "restart_to_install_update": "Restart Hydra to install the update" }, "system_tray": { "open": "Open Hydra", diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json index e91ab6a7..aa03b0f1 100644 --- a/src/locales/pt/translation.json +++ b/src/locales/pt/translation.json @@ -196,8 +196,8 @@ "repack_list_updated": "Lista de repacks atualizada", "repack_count_one": "{{count}} novo repack", "repack_count_other": "{{count}} novos repacks", - "new_version_available": "Nova versão do Hydra disponível", - "restart_to_install_new_version": "Reinicie o Hydra para instalar a nova versão" + "new_update_available": "Nova versão disponível", + "restart_to_install_update": "Reinicie o Hydra para instalar a nova versão" }, "system_tray": { "open": "Abrir Hydra", diff --git a/src/main/services/notifications.ts b/src/main/services/notifications.ts index 4e2340fb..5a487f9f 100644 --- a/src/main/services/notifications.ts +++ b/src/main/services/notifications.ts @@ -1,7 +1,7 @@ import { Notification, nativeImage } from "electron"; import { t } from "i18next"; import { parseICO } from "icojs"; - +import trayIcon from "@resources/tray-icon.png?asset"; import { Game } from "@main/entity"; import { gameRepository, userPreferencesRepository } from "@main/repository"; @@ -69,11 +69,12 @@ export const publishNewRepacksNotifications = async (count: number) => { export const publishNotificationUpdateReadyToInstall = async () => { new Notification({ - title: t("new_version_available", { + title: t("new_update_available", { ns: "notifications", }), - body: t("restart_to_install_new_version", { + body: t("restart_to_install_update", { ns: "notifications", }), + icon: trayIcon, }).show(); };