QHR Developers

Languages

QHR speaks Arabic and English. You choose the language of each response with the standard Accept-Language header.

bash
curl https://qhr-api.qdev.it/open/v1/employees \
  -H "Authorization: Bearer $QHR_TOKEN" \
  -H "Accept-Language: ar"
ValueLanguage
arArabic
enEnglish

Send the header on every request. If it is missing, or names a language other than these two, QHR answers in English.

What changes with the language

  • Error messages. The error text is translated: "انتهت صلاحية التوكن" instead of "Token expired".
  • Validation messages inside errors on a 422 response.

What never changes

  • Error codes. code is always the same English identifier, for example token_expired. Build your logic on code.
  • Field names and values you filter on. Keys like full_name and enum values like active or pending are the same in both languages.
  • Data people typed. An employee's name, a leave note or a document title is returned exactly as it was entered, in whatever language it was written.
  • Numbers and dates. Always Western digits and ISO 8601 dates (2026-12-14), so they are easy to parse. Format them for your users in your own app.

Choosing a language

  • For a user-facing app, send the language your user picked.
  • For a background integration that only logs errors, either language works. English is usually easier to search for in logs.
  • Claude handles this for you: it asks QHR in the language you are chatting in.

This documentation is also available in both languages. Use the language button at the top of any page.