Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
41 stars 5 forks source link

Send Accept-Language header #399

Closed pinarol closed 1 month ago

pinarol commented 1 month ago

We should send Accept-Language header in the REST API calls like:

Accept-Language: en-US, fr-CA, es-ES

It seems to me like we can take the values from NSLocale.preferredLanguages.

andrewdmontgomery commented 1 month ago

After investigating, it looks like a simple version of that header is already included by default. PR #416 adds a more comprehensive version of this header. See that PR for details.