![](/img/trans.png)
[英]Google Place Autocomplete API doesn't return the results in the correct language
[英]Google place autocomplete language
我正在使用Google Places自動完成功能。
源代碼在這里:
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
我注意到,當瀏覽器為英語時,它將以英語返回結果,而當瀏覽器為希伯來語時,它將以希伯來語返回結果。
無論瀏覽器使用哪種語言,我都希望所有結果以希伯來語返回。
我需要做什么?
加載API時使用language-parameter:
https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&language=iw
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.