without * hardcoding Arabic in JS. * * @return array */ public static function js_payload(): array { return [ 'lang' => self::lang(), 'is_rtl' => self::is_arabic() ? '1' : '0', 'confirm_reset_data' => self::tr( 'This will erase all scan data. Continue?', 'سيتم حذف كل بيانات الفحص. متأكد؟' ), 'confirm_factory_reset' => self::tr( 'Factory reset will erase scans + integrations + settings. Continue?', 'الـ Factory Reset هيمسح الفحوصات + الـ integrations + الإعدادات. متأكد؟' ), 'loading' => self::tr('Loading…', 'جاري التحميل…'), 'saving' => self::tr('Saving…', 'جاري الحفظ…'), 'saved' => self::tr('Saved', 'تم الحفظ'), 'failed' => self::tr('Failed', 'فشل'), 'retrying' => self::tr('Retrying…', 'إعادة المحاولة…'), 'connection_error' => self::tr('Connection error', 'خطأ اتصال'), 'copy' => self::tr('Copy', 'نسخ'), 'copied' => self::tr('Copied', 'تم النسخ'), 'prompt_copied' => self::tr('Copied - paste into any AI assistant', 'اتنسخ، الصقه في أي مساعد AI'), 'send' => self::tr('Send', 'إرسال'), 'cancel' => self::tr('Cancel', 'إلغاء'), 'view_details' => self::tr('View details', 'عرض التفاصيل'), 'mark_done' => self::tr('Mark done', 'تم الحل'), 'retest' => self::tr('Retest', 'إعادة فحص'), 'no_data' => self::tr('No data', 'لا توجد بيانات'), 'thinking' => self::tr('Thinking…', 'يفكر…'), ]; } /** * Reset the static cache (used by tests). */ public static function reset_cache(): void { self::$cached_lang = null; } }