openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Add Urdu language support with strict LTR directionality for README and app UI

Open AMIK-coorporations opened this issue 6 months ago • 0 comments

Add Urdu language support with strict LTR directionality for README and app UI

Summary

Introduce Urdu language support from scratch across the GitHub README and application UI, with all Urdu text rendered strictly in Left-to-Right (LTR) directionality as a non-negotiable design requirement.

Problem

Urdu is not currently supported in the codebase, documentation, or UI. Users who need Urdu content cannot view or interact with the product in their preferred language. Additionally, standard Urdu rendering defaults to RTL, which conflicts with our layout system. We need a new integration that adds Urdu language assets and enforces LTR display—without requiring the requester to implement code. Constraints: web and mobile platforms, no impact on existing locale pipelines, and performance-neutral font loading.

Solution (optional)

The implementing team will:

  • Add Urdu language files (translations, locale config) to the project.
  • Integrate a Unicode-compliant Urdu font that supports LTR glyph shaping.
  • Apply strict LTR directionality (dir="ltr", direction: ltr;) to all Urdu-rendering components and README sections.
  • Ensure the build pipeline, i18n framework, and CI checks accommodate the new locale without breaking existing flows.
  • Scope: App UI + GitHub README. Tradeoff: LTR Urdu is non-standard linguistically but required for visual consistency.

Acceptance criteria

  • [ ] Urdu locale added — New ur (or ur-PK) locale files are integrated into the i18n system and load without errors.
  • [ ] README Urdu section renders LTR — GitHub README displays Urdu text flowing left-to-right with correct punctuation placement, using only markdown/HTML/CSS no-code changes from the requester.
  • [ ] App UI supports Urdu in LTR — All UI surfaces that display Urdu text enforce LTR directionality and use a legible Urdu-capable font.
  • [ ] No RTL fallback or auto-detection — Urdu content never switches to RTL based on browser, OS, or locale settings.
  • [ ] Diff coverage ≥ 80% — the implementing PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by .github/workflows/pr-ci.yml).

Related

  • i18n Architecture Documentation
  • Font Loading Strategy for Non-Latin Scripts
  • Design Spec: LTR-Only Script Rendering

AMIK-coorporations avatar Jun 02 '26 10:06 AMIK-coorporations