Content language
Keepeek API supports localization of resource content.
The service will determine the appropriate language through a server driven negotiation with the client (browser, client stub...). Client may send an http request header Accept-Language
specifying a list of preferred language.
Accept-Language: en,fr;q=0.8
Depending on the instance configuration and the list of available locale, Keepeek API chooses the most satisfying language.
For example if english locale is not available but french and spanish are, the server will return content in french as it is the client second choice.
If the request does not contain any Accept-Language
or if requested languages are not available, the server will return content using user data language preference.
Therefore client must take care of the Content-Language
response http header as language may differ from requested one.
Content-Language: fr