Update: 2026-07-25 18:40:38

This commit is contained in:
Hamza-Ayed
2026-07-25 18:40:38 +03:00
parent 4bbc687c15
commit 8d3e63d1c7
9 changed files with 58 additions and 65 deletions
+9 -6
View File
@@ -507,13 +507,10 @@
'Contact': 'معلومات الاتصال',
'Click any row to open the full profile': 'اضغط على أي سطر لفتح الملف الشخصي الكامل',
'Search by passenger ID, phone or email': 'البحث برقم الراكب، الهاتف، أو البريد الإلكتروني',
'Search by captain ID, phone or email': 'البحث برقم الكابتن، الهاتف، أو البريد الإلكتروني',
'Search rides by phone number': 'البحث في الرحلات برقم الهاتف',
'Yes': 'نعم',
'No': 'لا',
'Click any row to open the full profile': 'اضغط على أي سطر لفتح الملف الشخصي الكامل',
'Search rides by phone number': 'بحث في الرحلات برقم الهاتف',
'Search by captain ID, phone or email': 'بحث بمعرّف الكابتن أو البريد الإلكتروني أو الهاتف',
'Search by passenger ID, phone or email': 'بحث بمعرّف الراكب أو البريد الإلكتروني أو الهاتف',
// API error messages
' — the endpoint returned HTML, check the API base URL': ' — الـ API أرجع HTML، تحقق من عنوان الخادم',
'Session rejected by the server': 'الخادم رفض الجلسة',
@@ -3389,12 +3386,18 @@
}
function humanize(key) {
const s = String(key)
if (!key) return '';
const rawKey = String(key).trim();
if (lang === 'ar' && AR[rawKey]) return AR[rawKey];
const s = rawKey
.replace(/[_-]+/g, ' ')
.replace(/([a-z])([A-Z])/g, '$1 $2')
.replace(/\b\w/g, (m) => m.toUpperCase())
.trim();
return t(key) || t(s) || s;
if (lang === 'ar' && AR[s]) return AR[s];
return s;
}
function msgNode(text) {