fix: improve title translation
This commit is contained in:
@ -43,7 +43,7 @@ const ChannelPage: NextPage<ChannelPageProps> = (props) => {
|
||||
<MembersProviders path={path}>
|
||||
<ChannelsProvider path={path}>
|
||||
<MessagesProvider path={path}>
|
||||
<Head title='Thream | Application' />
|
||||
<Head title={`Thream | ${selectedChannel.name}`} />
|
||||
<Application
|
||||
path={path}
|
||||
guildLeftSidebar={<GuildLeftSidebar path={path} />}
|
||||
|
@ -40,7 +40,7 @@ const ChannelSettingsPage: NextPage<ChannelSettingsPageProps> = (props) => {
|
||||
<GuildMemberProvider guildMember={guildMember} path={path}>
|
||||
<MembersProviders path={path}>
|
||||
<ChannelsProvider path={path}>
|
||||
<Head title='Thream | Application' />
|
||||
<Head title={`Thream | ${selectedChannel.name}`} />
|
||||
<Application
|
||||
path={path}
|
||||
guildLeftSidebar={<GuildLeftSidebar path={path} />}
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { NextPage } from 'next'
|
||||
import useTranslation from 'next-translate/useTranslation'
|
||||
|
||||
import { Head } from '../../../components/Head'
|
||||
import { Application } from '../../../components/Application'
|
||||
@ -18,6 +19,7 @@ export interface GuildSettingsPageProps extends PagePropsWithAuthentication {
|
||||
|
||||
const GuildSettingsPage: NextPage<GuildSettingsPageProps> = (props) => {
|
||||
const { guildId, authentication, guildMember } = props
|
||||
const { t } = useTranslation()
|
||||
|
||||
const path = { guildId }
|
||||
|
||||
@ -25,8 +27,8 @@ const GuildSettingsPage: NextPage<GuildSettingsPageProps> = (props) => {
|
||||
<AuthenticationProvider authentication={authentication}>
|
||||
<GuildsProvider>
|
||||
<GuildMemberProvider guildMember={guildMember} path={path}>
|
||||
<Head title='Thream | Guild settings' />
|
||||
<Application path={path} title='Guild settings'>
|
||||
<Head title={`Thream | ${t('application:guild-settings')}`} />
|
||||
<Application path={path} title={t('application:guild-settings')}>
|
||||
<GuildSettings />
|
||||
</Application>
|
||||
</GuildMemberProvider>
|
||||
|
Reference in New Issue
Block a user