feat: adding i18n for cloud sync

This commit is contained in:
Chubby Granny Chaser
2024-09-25 22:22:26 +01:00
parent 32fa69627c
commit 9b5e13ad35
13 changed files with 59 additions and 27 deletions

View File

@@ -0,0 +1,18 @@
import { HydraApi } from "@main/services";
import { registerEvent } from "../register-event";
import type { GameArtifact, GameShop } from "@types";
const getGameArtifacts = async (
_event: Electron.IpcMainInvokeEvent,
objectId: string,
shop: GameShop
) => {
const params = new URLSearchParams({
objectId,
shop,
});
return HydraApi.get<GameArtifact[]>(`/games/artifacts?${params.toString()}`);
};
registerEvent("getGameArtifacts", getGameArtifacts);