Logicify / jquery-locationpicker-plugin

JQuery Location Picker plugin
MIT License
389 stars 260 forks source link

Setting Google Maps Language #113

Open cp0815 opened 7 years ago

cp0815 commented 7 years ago

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?

fourpixels commented 7 years ago

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

kashifnaseer commented 4 years ago

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"