Include a locale in requests

How you include locale requests in Sitecore Search depends on how you integrate your application with Search:

  • If you are integrating using the Sitecore Cloud SDK, to include locale values in requests, ask a developer to set locale with its value in the context object using the LocaleData interface.

  • If you are integrating using Sitecore Search JS SDK for React, to include locale values in requests, ask a developer to set locale with its value in the context object of the query hook.

  • If you are integrating using Sitecore Search JS Data package, to include locale values in requests, ask a developer to set locale with its value in the context object using the setLocaleLanguage and setLocaleCountry interfaces.

  • If you are integrating using Sitecore Search REST APIs, to include locale values in requests, ask a developer to set locale with its value in the context object of the request.

Do you have some feedback for us?

If you have suggestions for improving this article,