Chat Machine Translation
Automatic translation of in-game chat using Microsoft or Google Translation API.
UPDATE 2025-06-07: Due to changes introduced by Klei after a skin-stealing hacking campaing, this mod now requires a companion app: https://www.koale.eu/chat/
Received messages are automatically translated to your configured language (open Mod Configuration for this, it will not use game/OS settings).
When sending a message, you can translate it by prefixing with language code and colon. For example, if your configured language is English, and you send message "fr:Hello world", it will actually send "Bonjour le monde".
If you want to know what language is someone using, open Console (keyboard key between Esc and Tab) and check the logs there, it will show the two-letter codes together with original text and translated text.
By default, this mod uses freely available Google translation API endpoint. You can optionally configure an API key for one of the supported services:
– Microsoft Azure Cognitive Services Translator
– Google Cloud Translation API
For Microsoft Azure Cognitive Services Translator:
– obtain API key and optionally also region name. Then create the following file:
– [C:/Program Files (x86)/Steam/] steamapps/common/Don’t Starve Together/data/microsoft-translate-key.txt
– use Notepad or any text editor and enter API key on first line, and optionally region on the second line
– if you have region=global, it will work with just API key.
– to obtain the key, go to https://portal.azure.com/ and follow the guide from here: https://www.koale.eu/azure-guide/
– you will need a Credit Card to verify your account with Microsoft, however you will not be charged if you select Free Tier
– as of May 2022, the free tier is 2 million characters per month
For Google Cloud Translation API:
– obtain API key, then create the following file:
– [C:/Program Files (x86)/Steam/] steamapps/common/Don’t Starve Together/data/google-translate-key.txt
– use Notepad or any text editor and enter API key on first line
– you will also need to provide Credit Card and BE CAREFUL, you MIGHT BE charged
– as of May 2022, the free tier is 0.5 million characters per month, you will be charged afterwards – if you exceed the limit, your card will be charged, there is no simple way provided by Google to only use the free tier
If you enter API keys for both services, Microsoft will be prefered (because of the higher limit and that they will ask you if you want to pay, after the free tier is used).
If you will play Don’t Starve every day and the people are chatting a lot, you can expect to use hundreds of thousands characters. My personal maximum is about 0.75M characters per month.