youssefreda9 commited on
Commit
d1caf7b
·
1 Parent(s): cf3dbe8

fix: Use Arabic numerals for word goal percentage

Browse files
Files changed (1) hide show
  1. src/js/editor.js +1 -1
src/js/editor.js CHANGED
@@ -91,7 +91,7 @@ function updateEditorStats() {
91
  if (goal > 0) {
92
  const pct = Math.min(Math.round((words / goal) * 100), 100);
93
  goalEl.style.display = 'inline-block';
94
- goalEl.textContent = `${pct}% من ${goal.toLocaleString('ar-EG')}`;
95
  goalEl.classList.toggle('goal-reached', pct >= 100);
96
  } else {
97
  goalEl.style.display = 'none';
 
91
  if (goal > 0) {
92
  const pct = Math.min(Math.round((words / goal) * 100), 100);
93
  goalEl.style.display = 'inline-block';
94
+ goalEl.textContent = `${pct.toLocaleString('ar-EG')}% من ${goal.toLocaleString('ar-EG')}`;
95
  goalEl.classList.toggle('goal-reached', pct >= 100);
96
  } else {
97
  goalEl.style.display = 'none';