I think right now it's not possible by the selected language in the game... Maybe any know how to do it by IP?
PHP: $location = json_decode(file_get_contents('http://ip-api.com/json/' . $ipaddress));// edit: didn't know json_decode returns an object $countryCode = $location->countryCode; Using the countryCode, you should be able to tell which language they are using. Example: PHP: $language = "English";switch($countryCode){ case "FR": $language = "French"; break;} See http://ip-api.com/docs/api:json Here are the the returned values: http://ip-api.com/json
You should remember to pay attention to the regionName value as it is important to countries that have multiple languages, eg. Belgium with Flanders and Wallonie. In Flanders they speak Dutch and in Wallonie they speak French.
You still must give users and oportunity to change theyr language. I live in Latvia but everytime i check my ip it's showing Sweden.
json_decode($string): if $string is a JSON object, returns a stdClass. json_decode($string, true): if $string is a JSON object, returns an associative array.