╔════════════════════════════════════════════════════════════╗ ║ Translation Audit Report ║ ╚════════════════════════════════════════════════════════════╝ 📊 Summary: • Total files scanned: 34 • Files with hardcoded messages: 1 • Total hardcoded Arabic messages: 6 ⚠️ Found controllers with hardcoded messages: 📄 AdminInvoiceController.php (6 issues) ──────────────────────────────────────────────────────────── Line 65: الفاتورة مدفوعة بالفعل Context: return $this->errorResponse('الفاتورة مدفوعة بالفعل', 400, [... Line 116: تم تحديد الفاتورة كمدفوعة بنجاح Context: ], 'تم تحديد الفاتورة كمدفوعة بنجاح');... Line 121: فشل تحديث حالة الفاتورة Context: return $this->errorResponse('فشل تحديث حالة الفاتورة', 500);... Line 141: لا يمكن إرسال تذكير لفاتورة مدفوعة Context: return $this->errorResponse('لا يمكن إرسال تذكير لفاتورة ... Line 152: تم إرسال التذكير بنجاح Context: ], 'تم إرسال التذكير بنجاح');... ... and 1 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!