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: enlace oculto
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(`enlace oculto{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