mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 08:43:48 +03:00
feat: update i18n
This commit is contained in:
parent
b58330ed35
commit
c24523e8e6
@ -200,8 +200,8 @@
|
|||||||
"repack_list_updated": "Repack list updated",
|
"repack_list_updated": "Repack list updated",
|
||||||
"repack_count_one": "{{count}} repack added",
|
"repack_count_one": "{{count}} repack added",
|
||||||
"repack_count_other": "{{count}} repacks added",
|
"repack_count_other": "{{count}} repacks added",
|
||||||
"new_version_available": "New Hydra version available",
|
"new_update_available": "New update available",
|
||||||
"restart_to_install_new_version": "Restart Hydra to install the new version"
|
"restart_to_install_update": "Restart Hydra to install the update"
|
||||||
},
|
},
|
||||||
"system_tray": {
|
"system_tray": {
|
||||||
"open": "Open Hydra",
|
"open": "Open Hydra",
|
||||||
|
@ -196,8 +196,8 @@
|
|||||||
"repack_list_updated": "Lista de repacks atualizada",
|
"repack_list_updated": "Lista de repacks atualizada",
|
||||||
"repack_count_one": "{{count}} novo repack",
|
"repack_count_one": "{{count}} novo repack",
|
||||||
"repack_count_other": "{{count}} novos repacks",
|
"repack_count_other": "{{count}} novos repacks",
|
||||||
"new_version_available": "Nova versão do Hydra disponível",
|
"new_update_available": "Nova versão disponível",
|
||||||
"restart_to_install_new_version": "Reinicie o Hydra para instalar a nova versão"
|
"restart_to_install_update": "Reinicie o Hydra para instalar a nova versão"
|
||||||
},
|
},
|
||||||
"system_tray": {
|
"system_tray": {
|
||||||
"open": "Abrir Hydra",
|
"open": "Abrir Hydra",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Notification, nativeImage } from "electron";
|
import { Notification, nativeImage } from "electron";
|
||||||
import { t } from "i18next";
|
import { t } from "i18next";
|
||||||
import { parseICO } from "icojs";
|
import { parseICO } from "icojs";
|
||||||
|
import trayIcon from "@resources/tray-icon.png?asset";
|
||||||
import { Game } from "@main/entity";
|
import { Game } from "@main/entity";
|
||||||
import { gameRepository, userPreferencesRepository } from "@main/repository";
|
import { gameRepository, userPreferencesRepository } from "@main/repository";
|
||||||
|
|
||||||
@ -69,11 +69,12 @@ export const publishNewRepacksNotifications = async (count: number) => {
|
|||||||
|
|
||||||
export const publishNotificationUpdateReadyToInstall = async () => {
|
export const publishNotificationUpdateReadyToInstall = async () => {
|
||||||
new Notification({
|
new Notification({
|
||||||
title: t("new_version_available", {
|
title: t("new_update_available", {
|
||||||
ns: "notifications",
|
ns: "notifications",
|
||||||
}),
|
}),
|
||||||
body: t("restart_to_install_new_version", {
|
body: t("restart_to_install_update", {
|
||||||
ns: "notifications",
|
ns: "notifications",
|
||||||
}),
|
}),
|
||||||
|
icon: trayIcon,
|
||||||
}).show();
|
}).show();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user