From b347f29d6c83e36144c5025f30abe1465469f536 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Thu, 29 Sep 2022 13:41:40 +0100 Subject: [PATCH] Feature/deprecate title translations (#4682) * wip * Aims to deprecate _title keys * Removed _title translation * Revert "wip" This reverts commit 3e33fc6b1ebc064ddfacd8ebc2b63b2ba009d416. --- apps/web/components/v2/eventtype/EventTypeSingleLayout.tsx | 2 +- apps/web/pages/v2/availability/[schedule].tsx | 2 +- apps/web/public/static/locales/ar/common.json | 1 - apps/web/public/static/locales/cs/common.json | 1 - apps/web/public/static/locales/de/common.json | 1 - apps/web/public/static/locales/en/common.json | 2 -- apps/web/public/static/locales/es/common.json | 1 - apps/web/public/static/locales/fr/common.json | 1 - apps/web/public/static/locales/he/common.json | 1 - apps/web/public/static/locales/it/common.json | 1 - apps/web/public/static/locales/ja/common.json | 1 - apps/web/public/static/locales/ko/common.json | 1 - apps/web/public/static/locales/nl/common.json | 1 - apps/web/public/static/locales/pl/common.json | 1 - apps/web/public/static/locales/pt-BR/common.json | 1 - apps/web/public/static/locales/pt/common.json | 1 - apps/web/public/static/locales/ro/common.json | 1 - apps/web/public/static/locales/sr/common.json | 1 - apps/web/public/static/locales/sv/common.json | 1 - apps/web/public/static/locales/tr/common.json | 1 - apps/web/public/static/locales/uk/common.json | 1 - apps/web/public/static/locales/vi/common.json | 1 - apps/web/public/static/locales/zh-CN/common.json | 1 - apps/web/public/static/locales/zh-TW/common.json | 1 - packages/ui/v2/core/Shell.tsx | 2 +- 25 files changed, 3 insertions(+), 26 deletions(-) diff --git a/apps/web/components/v2/eventtype/EventTypeSingleLayout.tsx b/apps/web/components/v2/eventtype/EventTypeSingleLayout.tsx index e3d907af4c..ba2f982317 100644 --- a/apps/web/components/v2/eventtype/EventTypeSingleLayout.tsx +++ b/apps/web/components/v2/eventtype/EventTypeSingleLayout.tsx @@ -157,7 +157,7 @@ function EventTypeSingleLayout({ return ( { - const pageTitle = typeof props.heading === "string" ? props.heading : props.title; + const pageTitle = typeof props.heading === "string" && !props.title ? props.heading : props.title; return ( <>