diff --git a/web/src/views/settings/GlobalConfigView.tsx b/web/src/views/settings/GlobalConfigView.tsx index bed579cf7..72b0df7be 100644 --- a/web/src/views/settings/GlobalConfigView.tsx +++ b/web/src/views/settings/GlobalConfigView.tsx @@ -82,11 +82,7 @@ const integrationSections = [ ]; export default function GlobalConfigView() { - const { t, i18n } = useTranslation([ - "views/settings", - "config/global", - "common", - ]); + const { t } = useTranslation(["views/settings", "config/global", "common"]); const defaultSharedSection = sharedSections[0]?.key ?? ""; const defaultSystemSection = systemSections[0]?.key ?? ""; const defaultIntegrationSection = integrationSections[0]?.key ?? ""; @@ -214,28 +210,10 @@ export default function GlobalConfigView() { activeSection === section.key ? "block" : "hidden", )} > - - {t(`${section.key}.label`, { - ns: "config/global", - defaultValue: - section.key.charAt(0).toUpperCase() + - section.key.slice(1).replace(/_/g, " "), - })} - - {i18n.exists(`${section.key}.description`, { - ns: "config/global", - }) && ( -

- {t(`${section.key}.description`, { - ns: "config/global", - })} -

- )} - diff --git a/web/src/views/settings/SingleSectionPage.tsx b/web/src/views/settings/SingleSectionPage.tsx index d99a146c7..e73b08947 100644 --- a/web/src/views/settings/SingleSectionPage.tsx +++ b/web/src/views/settings/SingleSectionPage.tsx @@ -52,7 +52,7 @@ export function createSingleSectionPage({ return (
- + {t(`${sectionKey}.label`, { ns: sectionNamespace })} {i18n.exists(`${sectionKey}.description`, {