ADR-0009: English documentation, Arabic-first product
Repository documentation, code comments, and commit messages are English; the product UI is Arabic by default with English as the second locale. Resolves open question Q8.
ADR-0009: English documentation, Arabic-first product
- Date: 2026-09-18
- Status: Accepted
- Deciders: the owner, Claude
- Tags:
strategybrand
Context
The seed documents were written in Arabic (open question Q8: Arabic docs + English code, or English only). The foundation is now an English-language upstream (supastarter, AGENTS.md), the Handbook is rendered by apps/docs, and non-Arabic contributors and tooling (linters, code review, upstream merges) need to read every document. At the same time the product serves Saudi shop owners who run their business from a phone in Arabic.
Decision
Repository language is English; product language is Arabic first.
- All documentation under
docs/, code comments, commit messages, pull request descriptions, and guide text in the repo are written in English. - Arabic appears in the repo only as data: the wordmark
محلّي, sector labels, UI translations underpackages/i18n/translations/ar, and mail templates. - The product UI defaults to
ar(RTL) withenas the second locale; every user-facing string goes through next-intl. - Conversations with the owner may be in Arabic; artefacts committed to the repo are not.
- ADRs follow
docs/adr/0000-template.mdand keep the "Revenue impact (SAR / month, confidence)" line.
Consequences
- Positive — one language for code, docs, upstream, and tooling; reviewable by any contributor; the Handbook renders cleanly in Fumadocs.
- Negative — the owner reads product strategy in a second language; Arabic-only stakeholders need a translated brief when one is required.
- Revenue impact (SAR / month, confidence) — none directly; lowers onboarding cost for developers and agents (medium confidence).
Rejected alternatives
- Arabic docs + English code (the seed's interim choice): two languages in one repo, poor tooling support, unreadable to upstream reviewers.
- English UI by default: contradicts the ICP (
docs/00-vision.md§4) and the "Arabic first, RTL native" principle.
References
docs/08-open-questions.md(Q8), ADR-0008,docs/index.md
ADR-0008: Adopt supastarter-nextjs as the foundation
Adopt supastarter-nextjs as the upstream foundation for Mahalli — Node-runtime Next.js 16, Better Auth, oRPC, Prisma + Drizzle, next-intl — while keeping the module contract, the glass design contract, and English docs.
ADR-0010: Unified Structured Data and AI Engine Optimization
Unified Schema.org JSON-LD structured data engine and crawler access rules for AI search engines.