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
LocaleDatainterface. -
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
setLocaleLanguageandsetLocaleCountryinterfaces. -
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.