feat(reco): visa högtidsnamn på användarens språk (nameLocalized || nameSv) (MIKRO D)
CI / Typecheck, test & build (push) Failing after 43s
CI / Typecheck, test & build (push) Failing after 43s
This commit is contained in:
@@ -201,7 +201,7 @@ export async function recommendationRoutes(app: FastifyInstance) {
|
|||||||
isEventActive({ dateRule: e.dateRule, leadDays: e.leadDays }, today),
|
isEventActive({ dateRule: e.dateRule, leadDays: e.leadDays }, today),
|
||||||
);
|
);
|
||||||
const activeHolidayTags = activeEvents.map((e) => e.slug); // slugs → matchar recept-holidayTags (scoring)
|
const activeHolidayTags = activeEvents.map((e) => e.slug); // slugs → matchar recept-holidayTags (scoring)
|
||||||
const activeHolidayNames = activeEvents.map((e) => e.nameSv); // visningsnamn med å/ä/ö
|
const activeHolidayNames = activeEvents.map((e) => e.nameLocalized || e.nameSv); // lokaliserat namn, fallback nameSv
|
||||||
|
|
||||||
// --- 6. Senast lagat (variation) + hushållsbetyg ---
|
// --- 6. Senast lagat (variation) + hushållsbetyg ---
|
||||||
const cooks = householdId
|
const cooks = householdId
|
||||||
|
|||||||
Reference in New Issue
Block a user