محولات الأطر

Framework Adapter Contract

The agnostic promise is precise: one translation model, one catalog/config workflow, and one tested behavior contract across adapters.

ts
npm run test:adapter-contract

# Covered semantics:
# translation, fallback, exists(), locale reads,
# locale switching where supported, dir, and isRTL.

النقاط الرئيسية

  • Adapters share translation, fallback, exists(), locale reads, and LTR/RTL metadata semantics.
  • Routing, SSR, hydration, stores, signals, and dependency injection remain explicit by framework.
  • npm run test:adapter-contract is wired into local verification, CI, coverage release, and publishing.

الخطوة التالية

انسخ المثال إلى أداة تثبيت صغيرة، وقم بتشغيل أوامر التحقق من الصحة، وحافظ على المسار أو السلوك الخاص بإطار العمل الذي تغطيه اختبارات التطبيق.