Pular para o conteúdo Pular para a barra lateral
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 -
- - - - - - -

Fuso horário do suporte: Asia/Karachi (GMT+05:00)

Este tópico contém 0, tem 1 voz.

Última atualização: edwinc-12 2 meses, 4 semanas atrás.

Assistido por: Waqas Bin Hasan.

Autor Postagens
Abril 22, 2025 às 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: link 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(`link 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

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

O tópico “[Fechado] subcategories is not showing as should be” está fechado para novas respostas.