AUTOUPDATER ADDED: SEE MODEL FOR SOURCE CODE https://create.roblox.com/marketplace/asset/12520251098/ChatTranslatorAutoUpdate (Incase you want to make sure it isn’t a virus or whatever, or just don’t want it to automatically update)
INSERT THIS INTO YOUR GAME, NOT THE SOURCE CODE ABOVE: Chat Translator - Roblox
[DEPRECIATED. TO USE, YOU MUST GO TO TEXTCHATSERVICE > PROPERTIES > CHATVERSION AND SET IT TO LEGACYCHATSERVICE.]
I got annoyed at the localization service and decided to make an automatic chat translator. It uses HTTP Requests and googles API to automatically translate chat and bubble chat messages. While its not as accurate as a native speaker, it still does amazingly compared to no translation at all (The language barrier is super annoying in some communities). It also automatically changes the message depending on what language the player has their ROBLOX Language set to.
English To Spanish:
Spanish to English:
(No, it does not translate the message for the user who sent it, these gifs are just to show it working.)
Please report any bugs and issues to me so I can deal with them.
Credits to sloss2003 for the translator module itself, while yes I made specific modifications, I probably wouldn’t have been able to figure out how to do this without the help of it.
PLEASE NOTE: WHILE THIS SCRIPT DOES DO A DECENT JOB AT BYPASSING THE LANGUAGE BARRIER (which is better than nothing), THIS IS STILL NOT AS ACCURATE AS A NATIVE SPEAKER. SPECIFIC TRANSLATIONS MAY BE INACCURATE, PLEASE CONSIDER ITS USE WISELY.
For a more comprehensive list of drawbacks please refer to the following below:
– Chat colors can only be white (unless you want to change it to a solid color or be smarter than me and figure out a way)
– Normal chat messages cannot be used as this sytem utilizes system messages. It was made this way to stop the original chat message from being broadcasted, and because speakers (players) cannot be mimicked through localscripts, which is required as it translates uniquely for all clients.
– might be laggy if roblox is running slowly
(Added a system that remembers the translations, so it doesn’t have to send 50 http requests per player, and instead is only about two, i’ll also add a system to stop it from translating to the language the player sent it in whenever I can figure out an effective way to grab the language data from the client and send it to server through a remote event or something.)
Update 1.1: Settings added to autoloader script.
Translation Type (true or false): if set to true, it will stop translations of languages to languages. Example: it will not translate english to english nor spanish to spanish.-
Log Mode: (true or false): prints what its doing.
Further Modifications to hopefully add more information for the user added.