feat: Add new virtual categories 'bald' and 'neu', update category handling in renderApp, and enhance translations across multiple locales
This commit is contained in:
@@ -542,14 +542,23 @@ const renderApp = async (categoryData, socket) => {
|
||||
let categoryPagesRendered = 0;
|
||||
let categoriesWithProducts = 0;
|
||||
|
||||
const allCategoriesPlusNeu = [...allCategories, {
|
||||
id: "neu",
|
||||
name: "Neuheiten",
|
||||
seoName: "neu",
|
||||
parentId: 209
|
||||
}];
|
||||
const allCategoriesWithVirtual = [
|
||||
...allCategories,
|
||||
{
|
||||
id: "neu",
|
||||
name: "Neuheiten",
|
||||
seoName: "neu",
|
||||
parentId: 209,
|
||||
},
|
||||
{
|
||||
id: "bald",
|
||||
name: "Demnächst",
|
||||
seoName: "bald",
|
||||
parentId: 209,
|
||||
},
|
||||
];
|
||||
|
||||
for (const category of allCategoriesPlusNeu) {
|
||||
for (const category of allCategoriesWithVirtual) {
|
||||
// Skip categories without seoName
|
||||
if (!category.seoName) {
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user