You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an overload method to the Connection.getApi() that allows users to pass Locale. We will use the Locale passed to add the X-Locale header using an interceptor.
Note: this only works if we can pass the X-Locale to all endpoints.
e.g.
connection.getApi(Locale.CANADA_FRENCH); // Will return an API that always includes X-Locale = fr-CA allowing responses to be in french
The text was updated successfully, but these errors were encountered:
Add an overload method to the Connection.getApi() that allows users to pass Locale. We will use the Locale passed to add the X-Locale header using an interceptor.
Note: this only works if we can pass the X-Locale to all endpoints.
e.g.
The text was updated successfully, but these errors were encountered: