Prechádzať zdrojové kódy

fix:update document title in Apps component (#2404)

Benjamin 1 rok pred
rodič
commit
517f6d1a26

+ 1 - 1
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()

+ 0 - 1
web/i18n/lang/app.en.ts

@@ -1,5 +1,4 @@
 const translation = {
-  title: 'Studio',
   createApp: 'Create new App',
   types: {
     all: 'All',

+ 0 - 1
web/i18n/lang/app.pt.ts

@@ -1,5 +1,4 @@
 const translation = {
-  title: 'Studio',
   createApp: 'Criar novo aplicativo',
   modes: {
     completion: 'Gerador de Texto',

+ 0 - 1
web/i18n/lang/app.zh.ts

@@ -1,5 +1,4 @@
 const translation = {
-  title: '工作室',
   createApp: '创建应用',
   types: {
     all: '全部',