CopyPastor

Detecting plagiarism made easy.

Score: 0.885853993342473; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2024-04-20
by maganap

Original Post

Original - Posted on 2024-04-20
by maganap



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You can actually set the `Accept-Language` on the request header, so they won't be translated to their account language, but kept in the language you believe is the original language.
For example, I'm authenticating with my own account, my account language is set to English, but reviews are mostly in Spanish. To avoid translation to English when retrieving reviews, you can set the header to accept Spanish first this way:
```js const resp = await oauth2Client.request({ url: `https://mybusiness.googleapis.com/v4/${account.name}/${location.name}/reviews?pageSize=2`, headers: { 'Accept-Language': 'es, en;q=0.7' }, }); ```
You can actually set the `Accept-Language` on the request header, so they won't be translated to your account language, but kept in the language you believe is the original language.
For example, I'm authenticating with my own account, my account language is set to English, but reviews are mostly in Spanish. To avoid translation to English when retrieving reviews, you can set the header to accept Spanish first this way:
```js const resp = await oauth2Client.request({ url: `https://mybusiness.googleapis.com/v4/${account.name}/${location.name}/reviews?pageSize=2`, headers: { 'Accept-Language': 'es, en;q=0.7' }, }); ```

        
Present in both answers; Present only in the new answer; Present only in the old answer;