From 1df1ffa2ec798f55cee947d7acf8256158dbdd7d Mon Sep 17 00:00:00 2001 From: twwu Date: Thu, 17 Jul 2025 14:08:00 +0800 Subject: [PATCH] fix(apps): add translation and document title for Apps component --- web/app/components/apps/index.tsx | 4 ++++ web/package.json | 2 +- web/pnpm-lock.yaml | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/web/app/components/apps/index.tsx b/web/app/components/apps/index.tsx index 68748439c7..be81a77dc3 100644 --- a/web/app/components/apps/index.tsx +++ b/web/app/components/apps/index.tsx @@ -3,10 +3,14 @@ import { useEducationInit } from '@/app/education-apply/hooks' import { useGlobalPublicStore } from '@/context/global-public-context' import List from './list' import Footer from './footer' +import useDocumentTitle from '@/hooks/use-document-title' +import { useTranslation } from 'react-i18next' const Apps = () => { + const { t } = useTranslation() const { systemFeatures } = useGlobalPublicStore() + useDocumentTitle(t('common.menus.apps')) useEducationInit() return ( diff --git a/web/package.json b/web/package.json index b9577c6e55..d369cc9f6c 100644 --- a/web/package.json +++ b/web/package.json @@ -59,7 +59,6 @@ "@mdx-js/loader": "^3.1.0", "@mdx-js/react": "^3.1.0", "@monaco-editor/react": "^4.6.0", - "@next/bundle-analyzer": "^15.4.1", "@next/mdx": "~15.3.5", "@octokit/core": "^6.1.2", "@octokit/request-error": "^6.1.5", @@ -161,6 +160,7 @@ "@eslint/js": "^9.20.0", "@faker-js/faker": "^9.0.3", "@happy-dom/jest-environment": "^17.4.4", + "@next/bundle-analyzer": "^15.4.1", "@next/eslint-plugin-next": "~15.3.5", "@rgrove/parse-xml": "^4.1.0", "@storybook/addon-essentials": "8.5.0", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 4da2578bdb..659e8ba144 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -75,9 +75,6 @@ importers: '@monaco-editor/react': specifier: ^4.6.0 version: 4.7.0(monaco-editor@0.52.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@next/bundle-analyzer': - specifier: ^15.4.1 - version: 15.4.1 '@next/mdx': specifier: ~15.3.5 version: 15.3.5(@mdx-js/loader@3.1.0(acorn@8.14.1)(webpack@5.99.5(esbuild@0.25.0)(uglify-js@3.19.3)))(@mdx-js/react@3.1.0(@types/react@19.1.8)(react@19.1.0)) @@ -376,6 +373,9 @@ importers: '@happy-dom/jest-environment': specifier: ^17.4.4 version: 17.4.4 + '@next/bundle-analyzer': + specifier: ^15.4.1 + version: 15.4.1 '@next/eslint-plugin-next': specifier: ~15.3.5 version: 15.3.5