feat: Add new virtual categories 'bald' and 'neu', update category handling in renderApp, and enhance translations across multiple locales

This commit is contained in:
sebseb7
2026-03-25 07:04:50 +01:00
parent e5a3b7bcce
commit 0ce8ce3626
27 changed files with 144 additions and 8 deletions

View File

@@ -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(