英文:
Why aren't Google review texts shown in the language they were written in?
问题
我请求了这个API并收到了评论,但似乎我的评论文本是孟加拉语,而显示的文本是英语。如何确保英语评论显示为英语,孟加拉评论显示为孟加拉语或其相应的语言?
我将在我的网站上显示用户提供评论的语言。
英文:
https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJDzcum_mb_DkRk5QKN0b39C4&key=api_key
I requested this API and received the review, but it appears that my review text is in Bengali while the displayed text is in English. How can I ensure that English reviews are shown in English and Bengali reviews are shown in Bengali or their respective languages?
I will display the language in which the user has provided a review on my web site.
答案1
得分: 0
Place Details API提供一个名为reviews_no_translations
的可选参数,允许您控制此功能:
https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJDzcum_mb_DkRk5QKN0b39C4&fields=reviews&reviews_no_translations=true&key=api_key
英文:
The Place Details API offers an optional parameter called reviews_no_translations
that allows you to control this:
https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJDzcum_mb_DkRk5QKN0b39C4&fields=reviews&reviews_no_translations=true&key=api_key
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论