Skip to main content

API response language preference

If Kuroco is configured for multiple languages, API responses will be made on a per-language basis.
Please refer to the following priority order for the languages that will be responded to.

Priority of Responded languages

  1. the _lang of the QueryString
  2. ACCEPT-LANGUAGE of the request header
  3. primary language of the site

Checking the Responded Language

The API response header includes a Content-language parameter that indicates the language of the returned data.
By checking this parameter, it is possible to confirm which language is being used in the response.

_lang parameter: No setting
Browser settings: English
Image from Gyazo

_lang parameter: No setting
Browser settings: Japanese
Image from Gyazo


Support

If you have any other questions, please contact us or check out Our Slack Community.