Localization
Content available for multiple languages
Suppliers have the ability to store their content in multiple languages in Ventrata. We use the Accept-Language
header in the request which ideally should be equal to what the client's browser/user agent sent.
More information about the structure of that header is here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language
We will then attempt to best match with a list of the languages that the Supplier has already translated their content into. The response will include Content-Langauge
header indicating the language of the content we returned. This follows the HTTP standard.
For example, a request that specifies a range of preferred languages:
And the response matching to English, as that's the only language available for that product:
Some implementations might plan to cache this content locally, for that we also return Octo-Available-Languages
header that will include a list of languages the supplier has translated the content into.
You can then repeat the request with each of the languages to get the different content.
Last updated
Was this helpful?