There are three methods. The first is to play with a real translation: check the store page to see whether the game supports your language in the interface or subtitles, and if it does not, look for a fan translation patch. It gives the best quality, but only exists for some games.
The second is to extract the game's text with a text hooker such as Textractor or LunaTranslator, which read text straight from the game process and pass it to a machine translator. It is the standard for Japanese visual novels, because the text arrives exactly as written, with no recognition errors. The third is to read the screen with OCR: Translumo translates subtitles live and continuously, and works with many games.
Sincron Screen Tools fits the third method, on demand: Ctrl + Shift + T translates a menu, an item description or a dialog box and places the translation on top of the original text. It uses your own OpenAI or OpenRouter key and does not follow subtitles that change on their own.