From 3cb8729f200608af195c027421afb5cd1c29b058 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Thu, 19 Jun 2025 14:20:04 +0200 Subject: [PATCH] improve i18nhelper --- apps/login/src/components/translated.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/login/src/components/translated.tsx b/apps/login/src/components/translated.tsx index 172c5b7af0..60cab58256 100644 --- a/apps/login/src/components/translated.tsx +++ b/apps/login/src/components/translated.tsx @@ -11,9 +11,10 @@ export function Translated({ namespace?: string; } & React.HTMLAttributes) { const t = useTranslations(namespace); + const helperKey = `${namespace ? `${namespace}.` : ""}${i18nKey}`; return ( - + {t(i18nKey)} );