From 2d66d426291e8032363f44b697e17c4d3672b9a1 Mon Sep 17 00:00:00 2001 From: Guillermo Pages Date: Tue, 11 Nov 2025 22:58:44 +0100 Subject: [PATCH] fix: add missing translations and fix type error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added missing translation keys in all language dictionaries: - "Slot" (en: "Slot", fr: "Créneau", de: "Zeitfenster") - "© 2024 Playchoo Manager. Venue administration portal." (translated to fr and de) Fixed type error in ClubProfileTab.tsx: - hasFieldValue() now explicitly returns boolean using Boolean() wrapper This resolves all TypeScript compilation errors. --- dictionaries/de.json | 4 +++- dictionaries/en.json | 4 +++- dictionaries/fr.json | 4 +++- .../[locale]/admin/clubs/[club_id]/tabs/ClubProfileTab.tsx | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dictionaries/de.json b/dictionaries/de.json index f5d86a4..3763648 100644 --- a/dictionaries/de.json +++ b/dictionaries/de.json @@ -834,5 +834,7 @@ "swap request": "Tauschanfrage", "Waiting for": "Warten auf", "approval(s)": "Genehmigung(en)", - "All approved": "Alle genehmigt" + "All approved": "Alle genehmigt", + "Slot": "Zeitfenster", + "© 2024 Playchoo Manager. Venue administration portal.": "© 2024 Playchoo Manager. Verwaltungsportal für Veranstaltungsorte." } diff --git a/dictionaries/en.json b/dictionaries/en.json index ca68bf0..99551c4 100644 --- a/dictionaries/en.json +++ b/dictionaries/en.json @@ -866,5 +866,7 @@ "Checking authentication...": "Checking authentication...", "Redirecting to login...": "Redirecting to login...", "Please log in to access the venue management portal.": "Please log in to access the venue management portal.", - "If you are a venue administrator and do not have access, please contact support.": "If you are a venue administrator and do not have access, please contact support." + "If you are a venue administrator and do not have access, please contact support.": "If you are a venue administrator and do not have access, please contact support.", + "Slot": "Slot", + "© 2024 Playchoo Manager. Venue administration portal.": "© 2024 Playchoo Manager. Venue administration portal." } diff --git a/dictionaries/fr.json b/dictionaries/fr.json index c36b2bc..300e257 100644 --- a/dictionaries/fr.json +++ b/dictionaries/fr.json @@ -830,5 +830,7 @@ "swap request": "demande d'échange", "Waiting for": "En attente de", "approval(s)": "approbation(s)", - "All approved": "Toutes approuvées" + "All approved": "Toutes approuvées", + "Slot": "Créneau", + "© 2024 Playchoo Manager. Venue administration portal.": "© 2024 Playchoo Manager. Portail d'administration de lieu." } diff --git a/src/app/[locale]/admin/clubs/[club_id]/tabs/ClubProfileTab.tsx b/src/app/[locale]/admin/clubs/[club_id]/tabs/ClubProfileTab.tsx index 198ff5a..38d50c7 100644 --- a/src/app/[locale]/admin/clubs/[club_id]/tabs/ClubProfileTab.tsx +++ b/src/app/[locale]/admin/clubs/[club_id]/tabs/ClubProfileTab.tsx @@ -251,7 +251,7 @@ export default function ClubProfileTab({ clubId, onUpdate }: ClubProfileTabProps } function hasFieldValue(value: string): boolean { - return value && value.trim().length > 0; + return Boolean(value && value.trim().length > 0); } // Loading state