From 4c3c47cc87b25782ec7981f945f83fa04d9b39d6 Mon Sep 17 00:00:00 2001 From: Ronni Baslund Date: Fri, 5 Jun 2026 12:08:57 +0200 Subject: [PATCH] feat(website): localize whitelabel partner cards (da/en) Partner demo cards in section 06 were hardcoded Danish strings, so they stayed Danish in EN mode. Move name + subtitle into COPY.whitelabel.partners for both languages and render them via a mapped computed; per-card accent and the placeholder style remain presentational config in the component. Also harden PartnerCard's avatar-initial against an empty name to satisfy noUncheckedIndexedAccess. --- .../components/landing/PartnerCard.vue | 2 +- .../website/components/landing/Whitelabel.vue | 30 +++++++++++++++++-- apps/website/utils/landingCopy.ts | 10 +++++++ 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/apps/website/components/landing/PartnerCard.vue b/apps/website/components/landing/PartnerCard.vue index 1f31c39..5229342 100644 --- a/apps/website/components/landing/PartnerCard.vue +++ b/apps/website/components/landing/PartnerCard.vue @@ -12,7 +12,7 @@ const props = withDefaults(defineProps<{ placeholder?: boolean }>(), { placeholder: false }) -const initial = computed(() => props.name[0].toUpperCase()) +const initial = computed(() => (props.name[0] ?? '').toUpperCase())