Google评论文本为什么不显示在它们原始语言中?

huangapple go评论79阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年6月22日 01:58:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76525984.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定