Supported Languages¶
Reference for the language parameter and how multilingual responses work.
Available Languages¶
| Code | Language | Target Markets |
|---|---|---|
en |
English | East Africa, Southern Africa, Global |
fr |
French | Central Africa, West Africa, Comoros, Madagascar |
sw |
Swahili | Tanzania, Kenya, Uganda, DRC (East) |
es |
Spanish | Latin America, Equatorial Guinea |
pt |
Portuguese | Mozambique, Angola, Guinea-Bissau, Brazil |
it |
Italian | East Africa (Eritrea, Ethiopia), Italy |
Usage¶
Set the language parameter in your request:
What Gets Translated¶
| Field | Translated? | Example |
|---|---|---|
diagnoses[].name |
Yes | "Rouille du caféier" (FR) |
diagnoses[].description |
Yes | Full description in target language |
treatment.immediate_actions |
Yes | Actions in target language |
treatment.recommended_products |
Yes | Product names + description |
treatment.natural_alternatives |
Yes | Alternatives in target language |
treatment.prevention |
Yes | Prevention tips in target language |
additional_notes |
Yes | Notes in target language |
What Stays in English¶
| Field | Why |
|---|---|
crop_health |
Enum value (healthy, unhealthy, unknown) |
treatment.urgency |
Enum value (low, moderate, high, critical) |
diagnoses[].confidence |
Numeric (0-1) |
predictions[].class_name |
Technical identifier |
request_id |
UUID |
| All JSON keys | API contract |
Design principle
JSON structure and enum values are always English for consistent parsing. Only human-readable descriptive text is translated.
Default Language¶
If the language parameter is omitted, the API defaults to French (fr).
Combining Language + Detail Level¶
Language and detail level work independently. You can combine any language with any detail level:
# Simple Swahili for farmers in Tanzania
curl -X POST "https://api.tajirifarm.com/diagnosis/" \
-F "image=@maize.jpg" \
-F "language=sw" \
-F "detail_level=simple"
# Expert French for agronomists in DRC
curl -X POST "https://api.tajirifarm.com/diagnosis/" \
-F "image=@cassava.jpg" \
-F "language=fr" \
-F "detail_level=expert"
Need Another Language?¶
We are expanding language support. Priority languages under consideration:
- Arabic (
ar) — North Africa - Amharic (
am) — Ethiopia - Hausa (
ha) — West Africa - Yoruba (
yo) — Nigeria
Request a language at contact@tajiri.farm.