From 517f6d1a26480ec33422fdd9b355ecfa17ae843e Mon Sep 17 00:00:00 2001 From: Benjamin Date: Tue, 6 Feb 2024 12:23:54 +0800 Subject: [PATCH] fix:update document title in Apps component (#2404) --- web/app/(commonLayout)/apps/Apps.tsx | 2 +- web/i18n/lang/app.en.ts | 1 - web/i18n/lang/app.pt.ts | 1 - web/i18n/lang/app.zh.ts | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/web/app/(commonLayout)/apps/Apps.tsx b/web/app/(commonLayout)/apps/Apps.tsx index c5331d744a..106f90810d 100644 --- a/web/app/(commonLayout)/apps/Apps.tsx +++ b/web/app/(commonLayout)/apps/Apps.tsx @@ -53,7 +53,7 @@ const Apps = () => { ] useEffect(() => { - document.title = `${t('app.title')} - 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/i18n/lang/app.en.ts b/web/i18n/lang/app.en.ts index 942841ca2f..420f0f3f73 100644 --- a/web/i18n/lang/app.en.ts +++ b/web/i18n/lang/app.en.ts @@ -1,5 +1,4 @@ const translation = { - title: 'Studio', createApp: 'Create new App', types: { all: 'All', diff --git a/web/i18n/lang/app.pt.ts b/web/i18n/lang/app.pt.ts index 2a13511c72..ab29556dce 100644 --- a/web/i18n/lang/app.pt.ts +++ b/web/i18n/lang/app.pt.ts @@ -1,5 +1,4 @@ const translation = { - title: 'Studio', createApp: 'Criar novo aplicativo', modes: { completion: 'Gerador de Texto', diff --git a/web/i18n/lang/app.zh.ts b/web/i18n/lang/app.zh.ts index ce1b6b1cf1..0867cf006c 100644 --- a/web/i18n/lang/app.zh.ts +++ b/web/i18n/lang/app.zh.ts @@ -1,5 +1,4 @@ const translation = { - title: '工作室', createApp: '创建应用', types: { all: '全部',