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"
| Value | Language |
|---|---|
ar | Arabic |
en | English |
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
errortext is translated:"انتهت صلاحية التوكن"instead of"Token expired". - Validation messages inside
errorson a422response.
What never changes
- Error codes.
codeis always the same English identifier, for exampletoken_expired. Build your logic oncode. - Field names and values you filter on. Keys like
full_nameand enum values likeactiveorpendingare 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.