Google商家信息更改自动完成提示结果语言? [英] Google Places Changing Auto-complete Hint & Result Language?
问题描述
https://google-developers.appspot.com/地图/文档/javascript/examples/places-autocomplete
我在上面的Google Places演示中有一个类似的页面.请注意,位置输入字段具有输入位置"提示.如何更改此提示的语言? 以及如何更改结果返回的语言? 我想他们都进入了相同的设置?
I have a similar page with above google places demo. Notice that the location input field has a hint of "Enter a location". How do i change the language of this hint? And how do i change the language of the results return? I guess both of them goes to the same setting?
推荐答案
根据文档:>
"API会检测用户的浏览器设置并适当设置语言.可以在 API."
"The API detects the browser settings of the user and set the language appropriately. It is possible to override the language in the APIs."
输入字段占位符将根据用户浏览器代理语言设置自动更改.
The input field placeholder will change automatically depending on the users browser agent language setting.
You can also override the automatic language detection by setting the language
parameter in your bootstrap request to a supported language.
E.G.
<script src="http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false&language=ja"></script>
这篇关于Google商家信息更改自动完成提示结果语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!