╔════════════════════════════════════════════════════════════╗ ║ Translation Audit Report ║ ╚════════════════════════════════════════════════════════════╝ 📊 Summary: • Total files scanned: 34 • Files with hardcoded messages: 1 • Total hardcoded Arabic messages: 8 ⚠️ Found controllers with hardcoded messages: 📄 AdminInvoiceController.php (8 issues) ──────────────────────────────────────────────────────────── Line 61: الفاتورة غير موجودة Context: return $this->errorResponse('الفاتورة غير موجودة', 404, [], 'IN... Line 65: الفاتورة مدفوعة بالفعل Context: return $this->errorResponse('الفاتورة مدفوعة بالفعل', 400, [... Line 116: تم تحديد الفاتورة كمدفوعة بنجاح Context: ], 'تم تحديد الفاتورة كمدفوعة بنجاح');... Line 121: فشل تحديث حالة الفاتورة Context: return $this->errorResponse('فشل تحديث حالة الفاتورة', 500);... Line 137: الفاتورة غير موجودة Context: return $this->errorResponse('الفاتورة غير موجودة', 404, [], 'IN... ... and 3 more ╔════════════════════════════════════════════════════════════╗ ║ Recommendations ║ ╚════════════════════════════════════════════════════════════╝ 1. Replace hardcoded Arabic messages with __() translation function 2. Create translation keys in resources/lang/ar/messages.php 3. Add English translations in resources/lang/en/messages.php 4. Test with Accept-Language: ar and Accept-Language: en headers Example fix: Before: return $this->successResponse($data, 'تم جلب البيانات بنجاح'); After: return $this->successResponse($data, __('messages.data_retrieved')); 🎉 Audit complete!