chore: title support i18n (#212)
This commit is contained in:
parent
fb7f509e5c
commit
66782ef19c
7 changed files with 10 additions and 4 deletions
|
|
@ -5,6 +5,7 @@ import Sidebar from '@/app/components/explore/sidebar'
|
|||
import { useAppContext } from '@/context/app-context'
|
||||
import { fetchMembers } from '@/service/common'
|
||||
import { InstalledApp } from '@/models/explore'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
export interface IExploreProps {
|
||||
children: React.ReactNode
|
||||
|
|
@ -13,12 +14,14 @@ export interface IExploreProps {
|
|||
const Explore: FC<IExploreProps> = ({
|
||||
children
|
||||
}) => {
|
||||
const { t } = useTranslation()
|
||||
const [controlUpdateInstalledApps, setControlUpdateInstalledApps] = useState(0)
|
||||
const { userProfile } = useAppContext()
|
||||
const [hasEditPermission, setHasEditPermission] = useState(false)
|
||||
const [installedApps, setInstalledApps] = useState<InstalledApp[]>([])
|
||||
|
||||
useEffect(() => {
|
||||
document.title = `${t('explore.title')} - Dify`;
|
||||
(async () => {
|
||||
const { accounts } = await fetchMembers({ url: '/workspaces/current/members', params: {}})
|
||||
if(!accounts) return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue