jquery-locationpicker-plugin icon indicating copy to clipboard operation
jquery-locationpicker-plugin copied to clipboard

Setting Google Maps Language

Open cp0815 opened this issue 8 years ago • 2 comments

I got the problem, that when using the location picker for locations in coutries where non standard characters are used, the locationtext is put out in the local characters, e.g. cyrilic characters in Serbia. This makes the location unreadable for people that are not familar with this characters. According to the google api documentation the language and region can be set to fix this issue. But I couldn't find an option to set this values in the locationpicker plugin. I also tried to set this values in same parts of the code of the plugin, but wasn't successful... How can I set this values correctly?

cp0815 avatar Feb 08 '17 20:02 cp0815

I think this has nothing to do with the plugin, you just need to initialize the map with the specific language that you want. You can set it to English and everything on the map will be in English, even in Serbia.

https://developers.google.com/maps/documentation/javascript/examples/map-language

fourpixels avatar Feb 24 '17 15:02 fourpixels

I'm also facing same issue, even after passing language as English, sometime results are in different languages. for example, if sometime Arab area is searched, it returns location like city, district/Area in Arabic, even when en is enforced. any idea how to fix it ?

<script src="//maps.google.com/maps/api/js?libraries=places&language=en&key=KEY"

kashifnaseer avatar May 11 '20 04:05 kashifnaseer