Detecting Country

So, to lay out the board, I plan to make an auto-translator for RBX chat. The only thing I need help with is figuring out their location(country) to tell which language to translate to. This may be obvious, may anyone inform me. Also, don’t bother talking about the discontinued geolocation Roblox offered.

8 Likes

Your best bet would likely to read the SystemLocaleId of the user or eventually RobloxLocaleId once Roblox supports more languages, they currently only support en-es (Spanish) and en-us (American English) to my knowledge.
https://wiki.roblox.com/index.php?title=API:Class/LocalizationService/SystemLocaleId
https://wiki.roblox.com/index.php?title=API:Class/LocalizationService/RobloxLocaleId

I think this would most fit #development-support:scripting-support as it’s a question about something currently possible.

3 Likes

Not everyone from a certain country speaks that certain language. I am from Denmark but I speak English.

And many countries have more than one different language.

I am curious how this will be put into effect.

Hmphhhh I

1 Like

Most likely I will have to nullify all MEMES

1 Like

Seems like a good idea, don’t get me wrong, but I think it will be unnecessary hard. Unless there could be a language detector that automatically translates everything someone says to their specific language.

Example:
A spanish speaking person says something to a english speaking person. But the english person only sees english, because it was translated, vice versa

1 Like

Na, I can EASILY do this in a day. I have no life ;-;

2 Likes

Will this be a chrome extension?

1 Like

You are not allowed to figure anything other than what the user willingly supplied though; trying to get a location in any other way than the localizationservice provides (you tagged IP :thinking:) is a very bad idea.

2 Likes