From 1a6298b6eace827962cbe043cd925bd3619c01fd Mon Sep 17 00:00:00 2001 From: Yi Feng <66539215+bigyifeng@users.noreply.github.com> Date: Fri, 14 Mar 2025 17:12:29 +0800 Subject: [PATCH] fix: Remove any extra Spaces in the title (#15841) --- web/app/(commonLayout)/apps/Apps.tsx | 2 +- web/app/components/explore/index.tsx | 2 +- web/i18n/en-US/explore.ts | 1 + web/i18n/zh-Hans/explore.ts | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/app/(commonLayout)/apps/Apps.tsx b/web/app/(commonLayout)/apps/Apps.tsx index 463e9cf515..ec80f47299 100644 --- a/web/app/(commonLayout)/apps/Apps.tsx +++ b/web/app/(commonLayout)/apps/Apps.tsx @@ -85,7 +85,7 @@ const Apps = () => { ] useEffect(() => { - document.title = `${t('common.menus.apps')} - Dify` + document.title = `${t('common.menus.apps')} - Dify` if (localStorage.getItem(NEED_REFRESH_APP_LIST_KEY) === '1') { localStorage.removeItem(NEED_REFRESH_APP_LIST_KEY) mutate() diff --git a/web/app/components/explore/index.tsx b/web/app/components/explore/index.tsx index 78a03d367f..fb4000e3b1 100644 --- a/web/app/components/explore/index.tsx +++ b/web/app/components/explore/index.tsx @@ -24,7 +24,7 @@ const Explore: FC = ({ const [installedApps, setInstalledApps] = useState([]) useEffect(() => { - document.title = `${t('explore.title')} - Dify`; + document.title = `${t('explore.title')} - Dify`; (async () => { const { accounts } = await fetchMembers({ url: '/workspaces/current/members', params: {} }) if (!accounts) diff --git a/web/i18n/en-US/explore.ts b/web/i18n/en-US/explore.ts index d4368fb171..40e928f8da 100644 --- a/web/i18n/en-US/explore.ts +++ b/web/i18n/en-US/explore.ts @@ -37,6 +37,7 @@ const translation = { Programming: 'Programming', HR: 'HR', Workflow: 'Workflow', + Entertainment: 'Entertainment', }, } diff --git a/web/i18n/zh-Hans/explore.ts b/web/i18n/zh-Hans/explore.ts index bb7faf0396..896a80ab25 100644 --- a/web/i18n/zh-Hans/explore.ts +++ b/web/i18n/zh-Hans/explore.ts @@ -37,6 +37,7 @@ const translation = { Programming: '编程', HR: '人力资源', Workflow: '工作流', + Entertainment: '娱乐', }, }