Fix English statuses and labels throughout UI to Hebrew
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 7s
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 7s
- Complete STATUS_LABELS in case view (added outcome_set, direction_approved, drafting, qa_review, reviewed) - Add DOC_STATUS_LABELS for diagnostics page (failed/stuck documents) - Add completed/failed/pending/error to global STEP_LABELS - Translate settings page table headers to Hebrew Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2938,7 +2938,8 @@ async function loadCaseView(caseNumber) {
|
|||||||
|
|
||||||
const STATUS_LABELS = {
|
const STATUS_LABELS = {
|
||||||
new: 'חדש', in_progress: 'בתהליך', documents_ready: 'מסמכים מוכנים',
|
new: 'חדש', in_progress: 'בתהליך', documents_ready: 'מסמכים מוכנים',
|
||||||
drafted: 'טיוטה', final: 'סופי',
|
outcome_set: 'תוצאה נקבעה', direction_approved: 'כיוון אושר',
|
||||||
|
drafting: 'בכתיבה', drafted: 'טיוטה', qa_review: 'בבדיקת QA', reviewed: 'נבדק', final: 'סופי',
|
||||||
};
|
};
|
||||||
const PRACTICE_AREA_LABELS = { appeals_committee: 'ועדת ערר', national_insurance: 'ביטוח לאומי', labor_law: 'דיני עבודה' };
|
const PRACTICE_AREA_LABELS = { appeals_committee: 'ועדת ערר', national_insurance: 'ביטוח לאומי', labor_law: 'דיני עבודה' };
|
||||||
const SUBTYPE_LABELS = { building_permit: 'רישוי ובנייה', betterment_levy: 'היטל השבחה', compensation_197: "פיצויים (ס' 197)", unknown: 'לא ידוע' };
|
const SUBTYPE_LABELS = { building_permit: 'רישוי ובנייה', betterment_levy: 'היטל השבחה', compensation_197: "פיצויים (ס' 197)", unknown: 'לא ידוע' };
|
||||||
@@ -3958,12 +3959,18 @@ async function loadDiagnostics() {
|
|||||||
return `<div class="diag-stat"><div class="diag-stat-label">${esc(label)}</div><div class="diag-stat-value">${val}</div></div>`;
|
return `<div class="diag-stat"><div class="diag-stat-label">${esc(label)}</div><div class="diag-stat-value">${val}</div></div>`;
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|
||||||
|
const DOC_STATUS_LABELS = {
|
||||||
|
pending: 'ממתין', processing: 'בעיבוד', extracting: 'מחלץ טקסט',
|
||||||
|
chunking: 'מפצל', embedding: 'יוצר embeddings', completed: 'הושלם',
|
||||||
|
failed: 'נכשל', error: 'שגיאה', queued: 'בתור',
|
||||||
|
};
|
||||||
|
|
||||||
const failedHtml = (data.failed_documents || []).map(d => `
|
const failedHtml = (data.failed_documents || []).map(d => `
|
||||||
<div class="diag-row diag-row-error">
|
<div class="diag-row diag-row-error">
|
||||||
<div class="diag-row-title">${esc(d.title || '(ללא שם)')}</div>
|
<div class="diag-row-title">${esc(d.title || '(ללא שם)')}</div>
|
||||||
<div class="diag-row-meta">
|
<div class="diag-row-meta">
|
||||||
${d.case_number ? `תיק ${esc(d.case_number)} · ` : ''}
|
${d.case_number ? `תיק ${esc(d.case_number)} · ` : ''}
|
||||||
סטטוס: <strong>${esc(d.status)}</strong>
|
סטטוס: <strong>${esc(DOC_STATUS_LABELS[d.status] || d.status)}</strong>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`).join('') || '<div class="empty" style="padding:16px">אין כישלונות</div>';
|
`).join('') || '<div class="empty" style="padding:16px">אין כישלונות</div>';
|
||||||
@@ -3973,7 +3980,7 @@ async function loadDiagnostics() {
|
|||||||
<div class="diag-row-title">${esc(d.title || '(ללא שם)')}</div>
|
<div class="diag-row-title">${esc(d.title || '(ללא שם)')}</div>
|
||||||
<div class="diag-row-meta">
|
<div class="diag-row-meta">
|
||||||
${d.case_number ? `תיק ${esc(d.case_number)} · ` : ''}
|
${d.case_number ? `תיק ${esc(d.case_number)} · ` : ''}
|
||||||
${esc(d.status)} מאז ${formatRelativeTime(d.created_at)}
|
${esc(DOC_STATUS_LABELS[d.status] || d.status)} מאז ${formatRelativeTime(d.created_at)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`).join('') || '<div class="empty" style="padding:16px">אין מסמכים תקועים</div>';
|
`).join('') || '<div class="empty" style="padding:16px">אין מסמכים תקועים</div>';
|
||||||
@@ -4052,6 +4059,10 @@ const STEP_LABELS = {
|
|||||||
copying: 'מעתיק',
|
copying: 'מעתיק',
|
||||||
registering: 'רושם',
|
registering: 'רושם',
|
||||||
extracting: 'חילוץ טקסט',
|
extracting: 'חילוץ טקסט',
|
||||||
|
completed: 'הושלם',
|
||||||
|
failed: 'נכשל',
|
||||||
|
pending: 'ממתין',
|
||||||
|
error: 'שגיאה',
|
||||||
};
|
};
|
||||||
|
|
||||||
function renderProcessPanel(items) {
|
function renderProcessPanel(items) {
|
||||||
@@ -5083,7 +5094,7 @@ async function loadTagMappings() {
|
|||||||
const thead = table.createTHead();
|
const thead = table.createTHead();
|
||||||
const headerRow = thead.insertRow();
|
const headerRow = thead.insertRow();
|
||||||
headerRow.style.borderBottom = '2px solid var(--border,#ddd)';
|
headerRow.style.borderBottom = '2px solid var(--border,#ddd)';
|
||||||
for (const label of ['Company', 'Tag', 'Label', '']) {
|
for (const label of ['חברה', 'תג', 'תיאור', '']) {
|
||||||
const th = document.createElement('th');
|
const th = document.createElement('th');
|
||||||
th.style.cssText = 'text-align:right;padding:8px';
|
th.style.cssText = 'text-align:right;padding:8px';
|
||||||
if (label === '') th.style.width = '60px';
|
if (label === '') th.style.width = '60px';
|
||||||
|
|||||||
Reference in New Issue
Block a user