דלג לתוכן דלג לסרגל הצד
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

אזור זמן של התומך: Asia/Karachi (GMT+05:00)

נושא זה מכיל 0 1, יש ל 1קוֹל.

עודכן לאחרונה על ידי edwinc-12 לפני 2 חודשים, 4 שבועות.

בסיוע: Waqas Bin Hasan.

מחבר פוסטים
אפריל 22, 2025 ב־10:49 am #16954589

edwinc-12

Background of the issue:
I am trying to ensure that when I hover over 'all' and a category, the subcategories display in English. The issue can be seen on this page: קישור נסתר

Symptoms:
When I hover over 'all' and a category, the subcategories still show in Arabic instead of English.

Questions:
Why are the subcategories still showing in Arabic when they should be in English?
How can I fix the language display issue for subcategories on hover?
async function fetchSubcategories(categoryId, signal) {
if (subcategoriesCache[categoryId]) {
return subcategoriesCache[categoryId];
}
try {
const response = await fetch(`קישור נסתר{categoryId}&per_page=20&consumer_key=...&consumer_secret=...`, { signal });

if (!response.ok) throw new Error('Network response was not ok');
const data = await response.json();
// console.log('Subcategories Data for ID', categoryId, ':', data); // Log the actual data

subcategoriesCache[categoryId] = data;
return data;
} catch (error) {
if (error.name === 'AbortError') {
console.log('Fetch aborted');
} else {
console.error('Error fetching subcategories:', error);
}
return [];
}
}

הנושא "[סגור] subcategories is not showing as should be" סגור לתגובות חדשות.